You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Good evening, first of all, thanks for a great gem.
First of all, let me start this out by saying I had to modify the files a little to properly reflect how the gem should inherit from each other. I had to do this because there was no way to properly change the date icon separately from the time icon. In it's current form, modifying the icon would change it for both the date AND the time. So, my current file structure is as follows:
def picker_pattern
I18n.t('datepicker.pformat', default: 'DD/MM/YYYY')
end
to
def picker_pattern
I18n.t('datepicker.pformat', default: 'MM/DD/YYYY')
end
any submission of the form stores nil in the database for rails on the date field. Here is my form input in simple_form: = e.input :date, as: :date_picker, label: "Event date", required: true
If I modify the display_patern to the US display of %m/%d/%Y, and leave the picker_patern how it is, everything gets sent to the database correctly. This ONLY breaks when modifying picker_patern.
The text was updated successfully, but these errors were encountered:
Good evening, first of all, thanks for a great gem.
First of all, let me start this out by saying I had to modify the files a little to properly reflect how the gem should inherit from each other. I had to do this because there was no way to properly change the date icon separately from the time icon. In it's current form, modifying the icon would change it for both the date AND the time. So, my current file structure is as follows:
https://gist.github.com/msands/c154549cb5f311ec096604f3f22904c9
Now, when attempting to change
to
any submission of the form stores
nil
in the database for rails on the date field. Here is my form input in simple_form:= e.input :date, as: :date_picker, label: "Event date", required: true
If I modify the
display_patern
to the US display of%m/%d/%Y
, and leave thepicker_patern
how it is, everything gets sent to the database correctly. This ONLY breaks when modifyingpicker_patern
.The text was updated successfully, but these errors were encountered: