Show end time on event

main
Bob Mottram 2022-05-23 13:56:38 +01:00
parent 7c16732f2a
commit 21359f5990
1 changed files with 2 additions and 1 deletions

View File

@ -162,7 +162,8 @@ def _html_calendar_day(person_cache: {}, css_cache: {}, translate: {},
event_end_date = \ event_end_date = \
datetime.strptime(evnt['endTime'], datetime.strptime(evnt['endTime'],
"%Y-%m-%dT%H:%M:%S%z") "%Y-%m-%dT%H:%M:%S%z")
event_end_time = event_date.strftime("%H:%M").strip() event_end_time = \
event_end_date.strftime("%H:%M").strip()
if 'public' in evnt: if 'public' in evnt:
if evnt['public'] is True: if evnt['public'] is True:
event_is_public = True event_is_public = True