All-day events fix
All-day events will be marked as such (no starting time will be shown).
This commit is contained in:
@@ -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)
|
||||||
|
Reference in New Issue
Block a user