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 14:01:21 -04:00
parent ac0070f624
commit cf059d60ec

View File

@ -784,7 +784,9 @@
const init_schedules = (day) => {
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
const current_day_indicator = document.querySelector("#current_day_indicator");