From b094a9ce154af9906c541fb50acbe05539b0996c Mon Sep 17 00:00:00 2001 From: Ivan Kocienski Date: Fri, 4 Oct 2024 11:10:57 +0100 Subject: [PATCH] Minor tweak to event show start time readout --- app/views/events/show.html.haml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/events/show.html.haml b/app/views/events/show.html.haml index 97f97f9..135abdd 100644 --- a/app/views/events/show.html.haml +++ b/app/views/events/show.html.haml @@ -5,10 +5,10 @@ -# FIXME: multi-day events %h2 - if @event_instance.ends_at.present? - From #{@event_instance.starts_at.strftime(EventsHelper::DATE_TIME_FORMAT)} + From #{fancy_time_format(@event_instance.starts_at)} for #{fancy_time_period_format(@event_instance.starts_at, @event_instance.ends_at)} - else - At #{@event_instance.starts_at.strftime(EventsHelper::DATE_TIME_FORMAT)} + At #{fancy_time_format(@event_instance.starts_at)} on #{fancy_date_format(@event_instance.starts_at)} %p