DataetimepickerInJuty
This commit is contained in:
13
app/inputs/datetime_picker_input.rb
Normal file
13
app/inputs/datetime_picker_input.rb
Normal file
@@ -0,0 +1,13 @@
|
||||
class DatetimePickerInput < DatePickerInput
|
||||
private
|
||||
|
||||
def display_pattern
|
||||
I18n.t('datepicker.dformat', default: '%d/%m/%Y') + ' ' +
|
||||
I18n.t('timepicker.dformat', default: '%R')
|
||||
end
|
||||
|
||||
def picker_pattern
|
||||
I18n.t('datepicker.pformat', default: 'DD/MM/YYYY') + ' ' +
|
||||
I18n.t('timepicker.pformat', default: 'HH:mm')
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user