fix attendance calendar do not show last day of monty

This commit is contained in:
xiaomlove
2022-04-30 16:03:07 +08:00
parent 4b24cebf12
commit 95af63e89a
4 changed files with 6 additions and 5 deletions
+1 -1
View File
@@ -13,7 +13,7 @@ class ExamUpdateProgress extends Command
*
* @var string
*/
protected $signature = 'exam:update_progress {--uid} {--bulk}';
protected $signature = 'exam:update_progress {--uid=} {--bulk=}';
/**
* The console command description.
+2 -1
View File
@@ -126,7 +126,8 @@ class Test extends Command
// $r = $rep->getContinuousDays($attendance);
// $r = $rep->getContinuousPoints(11);
$r = NexusDB::getAll('users', 'id = 1');
$today = Carbon::today();
$r = $today->endOfMonth();
dd($r);
}
+2 -2
View File
@@ -1,6 +1,6 @@
<?php
defined('VERSION_NUMBER') || define('VERSION_NUMBER', '1.7.6');
defined('RELEASE_DATE') || define('RELEASE_DATE', '2022-04-27');
defined('VERSION_NUMBER') || define('VERSION_NUMBER', '1.7.7');
defined('RELEASE_DATE') || define('RELEASE_DATE', '2022-04-30');
defined('IN_TRACKER') || define('IN_TRACKER', true);
defined('PROJECTNAME') || define("PROJECTNAME","NexusPHP");
defined('NEXUSPHPURL') || define("NEXUSPHPURL","https://nexusphp.org");
+1 -1
View File
@@ -70,7 +70,7 @@ foreach ($period as $value) {
}
}
$eventStr = json_encode($events);
$validRangeStr = json_encode(['start' => $start->format('Y-m-d'), 'end' => $end->format('Y-m-d')]);
$validRangeStr = json_encode(['start' => $start->format('Y-m-d'), 'end' => $end->clone()->addDays(1)->format('Y-m-d')]);
$js = <<<EOP
let events = JSON.parse('$eventStr')