fix date handling in schedule db lookups to be deterministic by setting time portion to 00:00:00
This commit is contained in:
parent
ac0070f624
commit
cf059d60ec
@ -784,7 +784,9 @@
|
|||||||
|
|
||||||
const init_schedules = (day) => {
|
const init_schedules = (day) => {
|
||||||
const day_of_schedule = day ? new Date(Date.parse(day)) : new Date();
|
const day_of_schedule = day ? new Date(Date.parse(day)) : new Date();
|
||||||
day_of_schedule.setHours(0).setMinutes(0).setSeconds(0);
|
day_of_schedule.setHours(0);
|
||||||
|
day_of_schedule.setMinutes(0);
|
||||||
|
day_of_schedule.setSeconds(0);
|
||||||
|
|
||||||
// set up header
|
// set up header
|
||||||
const current_day_indicator = document.querySelector("#current_day_indicator");
|
const current_day_indicator = document.querySelector("#current_day_indicator");
|
||||||
|
Loading…
Reference in New Issue
Block a user