diff --git a/webapp_calendar.py b/webapp_calendar.py index 2d3dab1d0..7c1de3180 100644 --- a/webapp_calendar.py +++ b/webapp_calendar.py @@ -226,8 +226,17 @@ def _html_calendar_day(person_cache: {}, css_cache: {}, translate: {}, if event_is_public: event_class = 'calendar__day__event__public' cal_item_class = 'calItemPublic' - if event_time and event_end_time: - event_time += ' - ' + event_end_time + if event_time: + if event_end_time: + event_time = \ + ' - ' + \ + '' + else: + event_time = \ + '' if event_time and event_description and event_place: calendar_str += \ '' + \