Skip to content
Snippets Groups Projects
Commit b03c0faa authored by Arnaud Levy's avatar Arnaud Levy
Browse files

fix

parent ac377e11
No related branches found
No related tags found
No related merge requests found
......@@ -39,7 +39,7 @@ module Communication::Website::Agenda::Event::WithCal
# Soit on a 1 heure de fin, et tout est simple
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
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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment