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
@@ -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')