diff --git a/apps/hourstrike/boot.js b/apps/hourstrike/boot.js index a787dcc14..a30ce78a1 100644 --- a/apps/hourstrike/boot.js +++ b/apps/hourstrike/boot.js @@ -7,7 +7,7 @@ t.setMilliseconds(t.getMilliseconds()+wait_msec); var t_hour = t.getHours(); if (t_hoursetting.end) { - var strike = new Date(t); + var strike = new Date(t.getTime()); strike.setHours(setting.start); if (t_hour>setting.end) { strike.setDate(strike.getDate()+1); diff --git a/apps/hourstrike/hourstrike.js b/apps/hourstrike/hourstrike.js index c258d338a..f21d44fb8 100644 --- a/apps/hourstrike/hourstrike.js +++ b/apps/hourstrike/hourstrike.js @@ -8,5 +8,5 @@ function notify_func () { .then(() => Bangle.buzz(200, setting.vlevel||0.5)); } -notify_func; +notify_func(); setTimeout(load, 800);