Skip to content

Commit 4e704ed

Browse files
author
thyttan
committed
twenties: rm workaround for alarms set at earlier time of day
1 parent af1c397 commit 4e704ed

1 file changed

Lines changed: 0 additions & 7 deletions

File tree

apps/twenties/lib.js

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@
3131

3232
exports.setup = function () {
3333
const TIME_AT_NEXT_BUZZ = getTimeAtNextBuzz();
34-
const TIME_AT_SETUP = new Date();
3534
let alarm = {
3635
on: true,
3736
t: TIME_AT_NEXT_BUZZ,
@@ -40,12 +39,6 @@
4039
group: "Hidden",
4140
js: JS_DELETE_ALARM_THEN_BUZZ_AND_SETUP
4241
};
43-
if (TIME_AT_NEXT_BUZZ <
44-
TIME_AT_SETUP.getHours() * 3600000 +
45-
TIME_AT_SETUP.getMinutes() * 60000 +
46-
TIME_AT_SETUP.getSeconds() * 1000) { // FIXME: this is done to work around a behavior in sched library. I think that is maybe a :BUG: that we should fix there. But unsure. It's around https://github.com/espruino/BangleApps/blob/master/apps/sched/boot.js#L21-L21
47-
alarm.last = Date().getDate();
48-
}
4942
S.setAlarm("twenties", alarm);
5043
S.reload();
5144
};

0 commit comments

Comments
 (0)