From e5d923e52107c5db4dcd8daa99e69447899f65b6 Mon Sep 17 00:00:00 2001 From: yflory Date: Mon, 12 Apr 2021 16:38:39 +0200 Subject: [PATCH] Fix calendar notifications timeout --- www/common/outer/calendar.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/www/common/outer/calendar.js b/www/common/outer/calendar.js index e66db22a2..016e95abb 100644 --- a/www/common/outer/calendar.js +++ b/www/common/outer/calendar.js @@ -128,6 +128,11 @@ define([ return; } + // setTimeout only work with 32bit timeout values. + // FIXME: call this function again in xxx days to reload these missing timeout? + if (ev.start - time10 >= 2147483647) { return; } + + // It starts in more than 10 minutes: prepare the 10 minutes notification reminders[uid].push(setTimeout(function () { sendNotif();