All-day events fix

All-day events will be marked as such (no starting time will be shown).
This commit is contained in:
Ace 2020-02-04 16:43:41 +01:00 committed by GitHub
parent ae2d4feb49
commit 6b74808a9f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -74,6 +74,7 @@ def fetch_events():
for events in upcoming_events:
if events.all_day and events.duration.days > 1:
events.end = events.end.replace(days=-2)
events.make_all_day()
if not events.all_day:
events.end = events.end.to(timezone)