From c2848de06d3369198e6c89af03c01226862abbbf Mon Sep 17 00:00:00 2001 From: Sundog Date: Tue, 3 Sep 2024 16:27:41 -0400 Subject: [PATCH] schedule bug fix --- layout.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layout.html b/layout.html index be0862f..c360aa0 100644 --- a/layout.html +++ b/layout.html @@ -614,9 +614,9 @@ }); const init_schedules = (first_day_of_week) => { + const first_day_of_schedule = new Date(Date.now()); if (first_day_of_week === undefined) { const today = new Date(Date.now()).getDay(); - let first_day_of_schedule = new Date(Date.now()); if (today < 1) { // today is Sunday, the week started six days ago