[Alarms & Timers] Add missing require("sched")

master
Alessandro Cocco 2022-04-24 21:36:17 +02:00
parent b7b64c2cfe
commit 65f8e20575
3 changed files with 4 additions and 3 deletions

View File

@ -20,4 +20,5 @@
0.19: Ensure rescheduled alarms that already fired have 'last' reset
0.20: Use the new 'sched' factories to initialize new alarms/timers
0.21: Fix time reset after a day of week change (#1676)
0.22: Refactor some methods to scheduling library
0.22: Refactor some methods to scheduling library
0.23: Fix regression with Days of Week (#1735)

View File

@ -104,7 +104,7 @@ function editAlarm(alarmIndex, alarm) {
value: "SMTWTFS".split("").map((d,n)=>a.dow&(1<<n)?d:".").join(""),
onchange: () => editDOW(a.dow, d => {
a.dow = d;
a.t = encodeTime(t);
a.t = require("sched").encodeTime(t);
editAlarm(alarmIndex, a);
})
},

View File

@ -2,7 +2,7 @@
"id": "alarm",
"name": "Alarms & Timers",
"shortName": "Alarms",
"version": "0.22",
"version": "0.23",
"description": "Set alarms and timers on your Bangle",
"icon": "app.png",
"tags": "tool,alarm,widget",