fix date handling in schedule db lookups to be deterministic by setting time portion to 00:00:00

This commit is contained in:
Sundog Jones 2024-09-23 13:56:14 -04:00
parent 95564afa5c
commit 13a42ff39c

View File

@ -831,7 +831,7 @@
if (!day) { if (!day) {
day = new Date(); 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) fetch(api_url)
.then((response) => { .then((response) => {
if (response.ok) { if (response.ok) {