fix date buttons

This commit is contained in:
Sundog Jones 2024-09-09 10:39:58 -04:00
parent 11a9ba7149
commit 2f66270bd0

View File

@ -645,13 +645,13 @@
const previous_day_schedule = (e) => {
e.preventDefault();
const day = new Date(e.target.getAttribute("data-day") - 86400);
const day = new Date(Date.parse(e.target.getAttribute("data-day")) - 86400);
init_schedules(day);
}
const next_day_schedule = (e) => {
e.preventDefault();
const day = new Date(e.target.getAttribute("data-day") + 86400);
const day = new Date(Date.parse(e.target.getAttribute("data-day")) + 86400);
init_schedules(day);
}