diff --git a/app/models/communication/website/agenda/event/with_cal.rb b/app/models/communication/website/agenda/event/with_cal.rb index f92a9cea27a625b50e3c955b4245a8dd44b29494..256ea4d9030dfd727f42931e4e058ea93eb0054a 100644 --- a/app/models/communication/website/agenda/event/with_cal.rb +++ b/app/models/communication/website/agenda/event/with_cal.rb @@ -40,6 +40,7 @@ module Communication::Website::Agenda::Event::WithCal cal_end_time = to_hour # Soit on n'en a pas, mais on a 1 heure de début, donc on ajoute 1 heure pour éviter les événements sans durée cal_end_time = from_hour + 1.hour if from_hour + # Si rien n'a marché, on a nil cal_end_time.nil? ? to_day.to_time # Il n'y a ni heure de fin ni heure de début : date_and_time(to_day, cal_end_time) # Il y a bien une heure de fin end