forked from FOSS/BangleApps
bug fix when cloning a date object
parent
d923201c79
commit
107e865d3f
|
@ -7,7 +7,7 @@
|
|||
t.setMilliseconds(t.getMilliseconds()+wait_msec);
|
||||
var t_hour = t.getHours();
|
||||
if (t_hour<setting.start||t_hour>setting.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);
|
||||
|
|
|
@ -8,5 +8,5 @@ function notify_func () {
|
|||
.then(() => Bangle.buzz(200, setting.vlevel||0.5));
|
||||
}
|
||||
|
||||
notify_func;
|
||||
notify_func();
|
||||
setTimeout(load, 800);
|
||||
|
|
Loading…
Reference in New Issue