mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-22 02:47:27 +08:00
fix attendance calendar do not show last day of monty
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
@@ -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");
|
||||
|
||||
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user