schedule bug fix

This commit is contained in:
Sundog Jones 2024-09-03 16:27:41 -04:00
parent 78b6f77cc9
commit c2848de06d

View File

@ -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