fix date handling in schedule db lookups to be deterministic by setting time portion to 00:00:00
This commit is contained in:
parent
95564afa5c
commit
13a42ff39c
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user