From 17c14e137e2872ab7c9189c1eae28ca1ee27a324 Mon Sep 17 00:00:00 2001 From: buxxi Date: Tue, 2 Aug 2022 16:45:37 +0200 Subject: [PATCH] Make the calendar show the whole multi day event with how far it has progressed --- CHANGELOG.md | 1 + modules/default/calendar/calendarutils.js | 4 ---- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index fd745cb61c..9a130b24d4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -22,6 +22,7 @@ _This release is scheduled to be released on 2022-10-01._ - Broadcast all calendar events while still honoring global and per-calendar maximumEntries. - Respect rss ttl provided by newsfeed (#2883). +- Fix multi day calendar events always presented as "(1/X)" instead of the amount of days the event has progressed. ## [2.20.0] - 2022-07-02 diff --git a/modules/default/calendar/calendarutils.js b/modules/default/calendar/calendarutils.js index 58e05d6472..66176bbcd6 100644 --- a/modules/default/calendar/calendarutils.js +++ b/modules/default/calendar/calendarutils.js @@ -469,10 +469,6 @@ const CalendarUtils = { return; } - // Adjust start date so multiple day events will be displayed as happening today even though they started some days ago already - if (fullDayEvent && startDate <= today && endDate > today) { - startDate = moment(today); - } // if the start and end are the same, then make end the 'end of day' value (start is at 00:00:00) if (fullDayEvent && startDate.format("x") === endDate.format("x")) { endDate = endDate.endOf("day");