Fixed google timezone issue

This commit is contained in:
Maximilian Giller 2019-04-02 19:36:09 +02:00
parent a4be256b50
commit 1ff09a5591

View file

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