zpaulovics / datetimepicker-rails

A date and time picker for Twitter Bootstrap in Rails using Simple Form
MIT License
174 stars 80 forks source link

Date Picker not Showing when "X" is specified as Format #82

Open ismail44 opened 8 years ago

ismail44 commented 8 years ago

I am trying to create a date picker that has the format of "unix timestamp". When I click on the calendar button, the proper date shows up in the corresponding text field, however, the calendar pop-up does not. It shows a small piece of div with no actual calendar.

Here's what I have for code:

<input data-date-options="{"locale":"en","format":"X","dayViewHeaderFormat":"MMMM YYYY"}" class="string datetime_picker required form-control" type="text" name="message[toiType]" id="message_toiType">