Fixed multi-day sorting
This commit is contained in:
parent
4d0b7009cd
commit
0b665f4976
1 changed files with 2 additions and 2 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue