Fixed multi-day sorting

This commit is contained in:
Maximilian Giller 2019-04-08 16:21:06 +02:00
parent 4d0b7009cd
commit 0b665f4976

View file

@ -57,11 +57,11 @@ class DayViewPanel (PanelDesign):
if self.__is_today__(event.begin_datetime):
today = date.today()
event.end_datetime = datetime(today.year, today.month, today.day) + timedelta(1)
allday_ev.append(event)
timed_ev.append(event)
elif self.__is_today__(event.end_datetime):
today = date.today()
event.begin_datetime = datetime(today.year, today.month, today.day)
allday_ev.append(event)
timed_ev.append(event)
else:
allday_ev.append(event)
else: