From c4b7c798d24f74cab1d935678b9a02938d2465fd Mon Sep 17 00:00:00 2001 From: storm64 Date: Sat, 9 Apr 2022 14:46:08 +0200 Subject: [PATCH] sched: Ensure dow wrap, Sa(6)+1 = Su(0) --- apps/sched/lib.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/sched/lib.js b/apps/sched/lib.js index 1189fa275..48094c86f 100644 --- a/apps/sched/lib.js +++ b/apps/sched/lib.js @@ -38,7 +38,7 @@ exports.getTimeToAlarm = function(alarm, time) { if (!alarm) return undefined; if (!time) time = new Date(); var currentTime = (time.getHours()*3600000)+(time.getMinutes()*60000)+(time.getSeconds()*1000); - var active = alarm.on && (alarm.dow>>(time.getDay()+(alarm.t>((time.getDay()+(alarm.t