From 6a2579ed3b8f4f2eafcedefcf6bd2f9dc52ac385 Mon Sep 17 00:00:00 2001 From: Arnaud Levy <contact@arnaudlevy.com> Date: Fri, 8 Sep 2023 10:36:11 +0200 Subject: [PATCH] default to day --- .../admin/communication/websites/agenda/events/static.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/admin/communication/websites/agenda/events/static.html.erb b/app/views/admin/communication/websites/agenda/events/static.html.erb index fc6d33d66..6190af178 100644 --- a/app/views/admin/communication/websites/agenda/events/static.html.erb +++ b/app/views/admin/communication/websites/agenda/events/static.html.erb @@ -12,7 +12,7 @@ dates: hour: <%= @about.from_hour.strftime "%H:%M" %> <% end %> to: - day: <%= @about.to_day %> + day: <%= @about.to_day || @about.from_day%> <% if @about.to_hour %> hour: <%= @about.to_hour.strftime "%H:%M" %> <% end %> -- GitLab