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