From e83b4d7d421682726ec4eb206e62f5b81fb86e8b Mon Sep 17 00:00:00 2001 From: Sam Detweiler Date: Mon, 26 Oct 2020 09:55:35 -0500 Subject: [PATCH] fix calendar when event has no DTEND record --- CHANGELOG.md | 1 + modules/default/calendar/calendarfetcher.js | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5132d110..d6958514 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -23,6 +23,7 @@ _This release is scheduled to be released on 2021-01-01._ - Fix calendar fetcher subsequent timing (#2160) - Rename Greek translation to correct ISO 639-1 alpha-2 code (gr > el). (#2155) - Add a space after icons of sunrise and sunset (#2169) +- Fix calendar when no DTEND record found in event, startDate overlay when endDate set (#2177) ## [2.13.0] - 2020-10-01 diff --git a/modules/default/calendar/calendarfetcher.js b/modules/default/calendar/calendarfetcher.js index f153f7c0..e7406584 100644 --- a/modules/default/calendar/calendarfetcher.js +++ b/modules/default/calendar/calendarfetcher.js @@ -117,7 +117,8 @@ const CalendarFetcher = function (url, reloadInterval, excludedEvents, maximumEn endDate = startDate.clone().add(moment.duration(event.duration)); } else { if (!isFacebookBirthday) { - endDate = startDate; + // make copy of start date, separate storage area + endDate = moment(startDate.format("x"), "x"); } else { endDate = moment(startDate).add(1, "days"); }