1
0
Fork 0

bug fix when cloning a date object

master
Weiming 2021-03-30 20:28:58 -04:00
parent d923201c79
commit 107e865d3f
2 changed files with 2 additions and 2 deletions

View File

@ -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);

View File

@ -8,5 +8,5 @@ function notify_func () {
.then(() => Bangle.buzz(200, setting.vlevel||0.5));
}
notify_func;
notify_func();
setTimeout(load, 800);