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