This commit is contained in:
Sundog Jones 2024-09-09 11:55:22 -04:00
parent 8f41e0f5bd
commit a32c1e2faa

View File

@ -640,14 +640,14 @@
const previous_day_schedule = (e) => {
e.preventDefault();
const day = new Date(e.target.getAttribute("data-day"));
const day = Date.parse(e.target.getAttribute("data-day"));
console.dir(day);
day.setDate(day.getDate() - 1);
init_schedules(day);
}
const next_day_schedule = (e) => {
e.preventDefault();
const day = new Date(e.target.getAttribute("data-day"));
const day = Date.parse(e.target.getAttribute("data-day"));
console.dir(day);
day.setDate(day.getDate() + 1);
init_schedules(day);