Don't adjust startDate for full day events if endDate is in the past

This commit is contained in:
Jon Kolb
2022-03-02 21:56:42 -05:00
parent 81ae95eba7
commit d588fab981
2 changed files with 2 additions and 1 deletions

View File

@@ -470,7 +470,7 @@ const CalendarUtils = {
}
// 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) {
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)