From 13a42ff39c93d53169a223da0cace499d83577b5 Mon Sep 17 00:00:00 2001 From: Sundog Date: Mon, 23 Sep 2024 13:56:14 -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 88fd574..94418ae 100755 --- a/layout.html +++ b/layout.html @@ -831,7 +831,7 @@ if (!day) { day = new Date(); } - const api_url = "schedule.php?date=" + day.toISOString(); + const api_url = "schedule.php?date=" + day.setHours(0).setMinutes(0).setSeconds(0).toISOString(); fetch(api_url) .then((response) => { if (response.ok) {