From 44e201326f78bb59ea90c018caf6ea6f89f10480 Mon Sep 17 00:00:00 2001 From: Erik Andresen Date: Fri, 22 Mar 2024 21:02:40 +0100 Subject: [PATCH] catch all fix for #3283 --- apps/sched/lib.js | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/sched/lib.js b/apps/sched/lib.js index 037192647..13cce1ef2 100644 --- a/apps/sched/lib.js +++ b/apps/sched/lib.js @@ -4,6 +4,7 @@ exports.getAlarms = function() { }; // Write a list of alarms back to storage exports.setAlarms = function(alarms) { + alarms.forEach(e => e.t %= 86400000); // Also fix #3281 from other apps, e.g. multitimer return require("Storage").writeJSON("sched.json",alarms); }; // Return an alarm object based on ID