demarches-normaliennes/app/views/shared/dossiers/editable_champs/_datetime.html.haml

5 lines
214 B
Text
Raw Normal View History

- parsed_value = champ.value.present? ? Time.zone.parse(champ.value) : nil
2017-08-02 14:56:08 +02:00
.datetime
= form.datetime_select(:value, selected: parsed_value, start_year: 1950, end_year: 2100, minute_step: 5, include_blank: true)