From 1ff09a5591f04e71ad8ab62798ea4d31245c32f1 Mon Sep 17 00:00:00 2001 From: Max G Date: Tue, 2 Apr 2019 19:36:09 +0200 Subject: [PATCH] Fixed google timezone issue --- Calendar/IcalEvents.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Calendar/IcalEvents.py b/Calendar/IcalEvents.py index 76f852e..1b88f17 100644 --- a/Calendar/IcalEvents.py +++ b/Calendar/IcalEvents.py @@ -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)