boot.js toLocalISOString

pull/2379/head
lauzonhomeschool 2022-12-08 17:50:46 -05:00 committed by GitHub
parent c483cbc067
commit a9f0b83e11
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

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