Display still ongoing multiple day events as happening today

This commit is contained in:
oemel09
2019-12-31 13:59:58 +01:00
parent ddb01fca31
commit 6a5f0225fe
2 changed files with 6 additions and 0 deletions

View File

@@ -306,6 +306,11 @@ var CalendarFetcher = function(url, reloadInterval, excludedEvents, maximumEntri
continue;
}
// 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) {
startDate = moment(today);
}
// Every thing is good. Add it to the list.
newEvents.push({