Fixed false interpreted allday and multiday events

This commit is contained in:
Maximilian Giller 2019-03-21 22:52:42 +01:00
parent d838ee37d0
commit 4b1cbed0f7

View file

@ -51,6 +51,9 @@ class IcalEvents(CalendarInterface):
cal_event.location = event.location cal_event.location = event.location
cal_event.allday = event.all_day cal_event.allday = event.all_day
if cal_event.allday:
cal_event.end_datetime = cal_event.end_datetime - timedelta(2)
loaded_events.append(cal_event) loaded_events.append(cal_event)
return loaded_events return loaded_events
except: except: