fix date handling in schedule db lookups to be deterministic by setting time portion to 00:00:00
This commit is contained in:
parent
13a42ff39c
commit
8014d4c3fe
@ -788,7 +788,7 @@
|
||||
// set up header
|
||||
const current_day_indicator = document.querySelector("#current_day_indicator");
|
||||
current_day_indicator.innerHTML = `<center>Schedule for <strong>${day_of_schedule.toDateString()}</strong></center>`;
|
||||
current_day_indicator.setAttribute("data-day", day_of_schedule.toISOString());
|
||||
current_day_indicator.setAttribute("data-day", day_of_schedule.setHours(0).setMinutes(0).setSeconds(0).toISOString());
|
||||
// set up previous/next buttons
|
||||
document.querySelector('#previous_day_button').addEventListener("click", previous_day_schedule);
|
||||
document.querySelector('#next_day_button').addEventListener("click", next_day_schedule);
|
||||
|
Loading…
Reference in New Issue
Block a user