schedule bug fix
This commit is contained in:
parent
78b6f77cc9
commit
c2848de06d
@ -614,9 +614,9 @@
|
||||
});
|
||||
|
||||
const init_schedules = (first_day_of_week) => {
|
||||
const first_day_of_schedule = new Date(Date.now());
|
||||
if (first_day_of_week === undefined) {
|
||||
const today = new Date(Date.now()).getDay();
|
||||
let first_day_of_schedule = new Date(Date.now());
|
||||
|
||||
if (today < 1) {
|
||||
// today is Sunday, the week started six days ago
|
||||
|
Loading…
Reference in New Issue
Block a user