mirror of https://github.com/espruino/BangleApps
boot.js toLocalISOString
parent
c483cbc067
commit
a9f0b83e11
|
@ -13,7 +13,7 @@
|
|||
&& (a.last != d) // not already fired today
|
||||
&& (a.t + 60000 > currentTime) // is not in the past by >1 minute
|
||||
&& (a.dow >> time.getDay() & 1) // is allowed on this day of the week
|
||||
&& (!a.date || a.date == time.toISOString().substr(0, 10)) // is allowed on this date
|
||||
&& (!a.date || a.date == time.toLocalISOString().substr(0, 10)) // is allowed on this date
|
||||
);
|
||||
if (active.length) {
|
||||
active = active.sort((a,b)=>a.t-b.t); // sort by time
|
||||
|
|
Loading…
Reference in New Issue