2019-01-24 14:57:21 +01:00
|
|
|
- parsed_value = champ.value.present? ? Time.zone.parse(champ.value) : nil
|
2017-07-25 14:33:03 +02:00
|
|
|
|
2017-08-02 14:56:08 +02:00
|
|
|
.datetime
|
2020-08-13 10:23:11 +02:00
|
|
|
= form.datetime_select(:value, selected: parsed_value, start_year: datetime_start_year(parsed_value), end_year: Date.today.year + 50, minute_step: 5, include_blank: true)
|