TrevorS / bootstrap3-datetimepicker-rails

This gem packages the bootstrap-datetimepicker for the Rails 3.1+ asset pipeline.
MIT License
292 stars 123 forks source link

Issue with data-date-format #4

Closed santhu46 closed 10 years ago

santhu46 commented 10 years ago

HI As per documentation, I changed your data-date-format to

div class='input-group date controls' id='datetimepicker2' data-date-format="DD/MM/YYYY hh:mm A"

after that i observed the starting date is showing after 2 years. At my place its like "2/6/2016". Let me know the problem

TrevorS commented 10 years ago

Hello @santhu46, can you create a jsfiddle to demonstrate the problem?

You can use this one as a base to work from: http://jsfiddle.net/5hcaq/3/

santhu46 commented 10 years ago

May be because of conflict js files in my rails app . I resolved it thank u

TrevorS commented 10 years ago

Awesome, thanks!

binyamindavid commented 10 years ago

@santhu46 Do you mind sharing how you solved the problem. I am having the same problem.

ArgumentError at /events
argument out of range
skuark commented 10 years ago

Hi @TrevorS It seems that you may update bootstrap-datetimepicker, cause your version has a bug that they solved: https://github.com/Eonasdan/bootstrap-datetimepicker/issues/228

I was having the same problem in my rails app and I've fixed it using this fork of your repo: https://github.com/ChrisLusted/bootstrap3-datetimepicker-rails

/cc @vezu

binyamindavid commented 10 years ago

@TrevorS Thank you very much. I will do the same.

TrevorS commented 10 years ago

Hello @skuark, I usually wait for @Eonasdan to release a new version, but I might have to build a pre-release this time. Thanks!

skuark commented 10 years ago

You're welcome :+1: