From 21359f59909ba865d978f26c31e1030b341c9b40 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Mon, 23 May 2022 13:56:38 +0100 Subject: [PATCH] Show end time on event --- webapp_calendar.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/webapp_calendar.py b/webapp_calendar.py index 3f300d5d3..7f70c9c08 100644 --- a/webapp_calendar.py +++ b/webapp_calendar.py @@ -162,7 +162,8 @@ def _html_calendar_day(person_cache: {}, css_cache: {}, translate: {}, event_end_date = \ datetime.strptime(evnt['endTime'], "%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 evnt['public'] is True: event_is_public = True