From 2a58c2d1d8c6432211b7bab4ccf2e9893f3ec113 Mon Sep 17 00:00:00 2001 From: Sundog Date: Mon, 23 Sep 2024 14:02:02 -0400 Subject: [PATCH] fix date handling in schedule db lookups to be deterministic by setting time portion to 00:00:00 --- layout.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layout.html b/layout.html index 1323ef7..08dfcf1 100755 --- a/layout.html +++ b/layout.html @@ -834,7 +834,7 @@ if (!day) { day = new Date(); } - const api_url = "schedule.php?date=" + day.setHours(0).setMinutes(0).setSeconds(0).toISOString(); + const api_url = "schedule.php?date=" + day.toISOString(); fetch(api_url) .then((response) => { if (response.ok) {