From a0b67cc364107bc5da4316b447343cb0fbbca0c9 Mon Sep 17 00:00:00 2001 From: yflory Date: Wed, 14 Apr 2021 11:09:21 +0200 Subject: [PATCH] Fix allDay reminders notifications end time --- www/common/outer/calendar.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/www/common/outer/calendar.js b/www/common/outer/calendar.js index cafa028f1..90d0e9c6b 100644 --- a/www/common/outer/calendar.js +++ b/www/common/outer/calendar.js @@ -107,7 +107,13 @@ define([ if (ev.isAllDay) { if (ev.startDay) { ev.start = +new Date(ev.startDay); } - if (ev.endDay) { ev.end = +new Date(ev.endDay); } + if (ev.endDay) { + var endDate = new Date(obj.endDay); + endDate.setHours(23); + endDate.setMinutes(59); + endDate.setSeconds(59); + obj.end = +endDate; + } } // XXX add a limit to make sure we don't go too far in the past?