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 14:02:02 -04:00
parent cf059d60ec
commit 2a58c2d1d8

View File

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