From cf059d60eceebdfe737e2db233110de43b46b6ff Mon Sep 17 00:00:00 2001 From: Sundog Date: Mon, 23 Sep 2024 14:01:21 -0400 Subject: [PATCH] fix date handling in schedule db lookups to be deterministic by setting time portion to 00:00:00 --- layout.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/layout.html b/layout.html index e1083f9..1323ef7 100755 --- a/layout.html +++ b/layout.html @@ -784,7 +784,9 @@ const init_schedules = (day) => { const day_of_schedule = day ? new Date(Date.parse(day)) : new Date(); - day_of_schedule.setHours(0).setMinutes(0).setSeconds(0); + day_of_schedule.setHours(0); + day_of_schedule.setMinutes(0); + day_of_schedule.setSeconds(0); // set up header const current_day_indicator = document.querySelector("#current_day_indicator");