Fixed bug in recognition of multi-day events
This commit is contained in:
parent
43c5fafdba
commit
002f20504d
1 changed files with 2 additions and 1 deletions
|
@ -51,7 +51,6 @@ class IcalEvents(CalendarInterface):
|
|||
cal_event.description = event.description
|
||||
cal_event.location = event.location
|
||||
cal_event.allday = event.all_day
|
||||
cal_event.multiday = self.__is_multiday__(cal_event)
|
||||
cal_event.rrule = self.__extract_rrule__(event)
|
||||
|
||||
cal_event.begin_datetime = cal_event.begin_datetime.astimezone(None)
|
||||
|
@ -61,6 +60,8 @@ class IcalEvents(CalendarInterface):
|
|||
cal_event.end_datetime = cal_event.end_datetime - timedelta(1)
|
||||
cal_event.duration = cal_event.duration - timedelta(1)
|
||||
|
||||
cal_event.multiday = self.__is_multiday__(cal_event)
|
||||
|
||||
loaded_events.append(cal_event)
|
||||
return loaded_events
|
||||
except BaseException as ex:
|
||||
|
|
Loading…
Reference in a new issue