From 533d6693951d235e33bc82e38d112241b7404cc7 Mon Sep 17 00:00:00 2001 From: lauzonhomeschool <85599144+lauzonhomeschool@users.noreply.github.com> Date: Thu, 15 Dec 2022 18:57:48 -0500 Subject: [PATCH] boot.js - fix midnight in local timezone --- apps/sched/boot.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/sched/boot.js b/apps/sched/boot.js index c1bb1fc66..d736dd0e7 100644 --- a/apps/sched/boot.js +++ b/apps/sched/boot.js @@ -26,7 +26,7 @@ If active[0].js is defined, just run that code as-is and not alarm.js */ Bangle.SCHED = setTimeout(active[0].js||'load("sched.js")',t); } else { // check for new alarms at midnight (so day of week works) - Bangle.SCHED = setTimeout('eval(require("Storage").read("sched.boot.js"))', 86400000 - (Date.now()%86400000)); + Bangle.SCHED = setTimeout('eval(require("Storage").read("sched.boot.js"))', 86400000 - currentTime); } })(); /* DEBUGGING