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
1 changed files with 1 additions and 1 deletions

View File

@ -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) {