mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-24 03:57:22 +08:00
fix attendance calendar do not show last day of monty
This commit is contained in:
@@ -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