demarches-normaliennes/app/views/shared/dossiers/editable_champs/_datetime.html.haml
2018-10-26 10:10:20 +00:00

4 lines
203 B
Text

- parsed_value = champ.value.present? ? Time.zone.parse(champ.value) : Time.zone.now
.datetime
= form.datetime_select(:value, selected: parsed_value, start_year: 1950, end_year: 2100, minute_step: 5)