fix calendar when event has no DTEND record

This commit is contained in:
Sam Detweiler
2020-10-26 09:55:35 -05:00
parent 568f952573
commit e83b4d7d42
2 changed files with 3 additions and 1 deletions

View File

@@ -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");
}