Added missing conversion of end_datetime

This commit is contained in:
Maximilian Giller 2019-04-05 18:53:16 +02:00
parent 6a37255b57
commit 3e11ec4df0

View file

@ -54,6 +54,7 @@ class IcalEvents(CalendarInterface):
cal_event.rrule = self.__extract_rrule__(event)
cal_event.begin_datetime = cal_event.begin_datetime.astimezone(None)
cal_event.end_datetime = cal_event.end_datetime.astimezone(None)
if cal_event.allday:
cal_event.end_datetime = cal_event.end_datetime - timedelta(1)