fix date buttons
This commit is contained in:
parent
11a9ba7149
commit
2f66270bd0
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user