All-day events fix
All-day events will be marked as such (no starting time will be shown).
This commit is contained in:
parent
ae2d4feb49
commit
6b74808a9f
@ -74,6 +74,7 @@ def fetch_events():
|
|||||||
for events in upcoming_events:
|
for events in upcoming_events:
|
||||||
if events.all_day and events.duration.days > 1:
|
if events.all_day and events.duration.days > 1:
|
||||||
events.end = events.end.replace(days=-2)
|
events.end = events.end.replace(days=-2)
|
||||||
|
events.make_all_day()
|
||||||
|
|
||||||
if not events.all_day:
|
if not events.all_day:
|
||||||
events.end = events.end.to(timezone)
|
events.end = events.end.to(timezone)
|
||||||
|
Loading…
Reference in New Issue
Block a user