Fixed some google calendar event issues based on timezones.

This commit is contained in:
Maximilian Giller 2019-03-24 19:49:00 +01:00
parent 88ace91239
commit bcca8a8f8a

View file

@ -43,8 +43,8 @@ class IcalEvents(CalendarInterface):
cal_event = CalendarEvent()
cal_event.fetch_datetime = datetime.now()
cal_event.begin_datetime = event.begin.datetime
cal_event.end_datetime = event.end.datetime
cal_event.begin_datetime = event.begin.datetime.astimezone(None)
cal_event.end_datetime = event.end.datetime.astimezone(None)
cal_event.duration = event.duration
cal_event.title = event.name
cal_event.description = event.description