Fixed timezone-issue

This commit is contained in:
Maximilian Giller 2019-03-27 17:58:26 +01:00
parent 1c56323ff0
commit 225963aaeb

View file

@ -44,8 +44,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