Auto-commit for deploy to production - 2025-12-09 13:34:38

This commit is contained in:
2025-12-09 13:34:38 +01:00
parent 31f34b7ca6
commit 556b894431
+2 -4
View File
@@ -212,20 +212,18 @@ function addSchoolHolidayEventsFromRecords(records, events) {
groups.forEach((g) => {
const start = new Date(g.startIso);
const end = new Date(g.endIso);
let current = new Date(start);
while (current <= end) {
// end = date de reprise -> on s'arrête la veille
while (current < end) {
const year = current.getFullYear();
const month = String(current.getMonth() + 1).padStart(2, "0");
const day = String(current.getDate()).padStart(2, "0");
const isoDate = `${year}-${month}-${day}`;
events.push({
date: isoDate,
type: "VACANCES_SCOLAIRES",
duration: 1,
});
current.setDate(current.getDate() + 1);
}
});