anjlab / anjlab-widgets

UI Widgets on top of anjlab-bootstrap-rails
MIT License
54 stars 15 forks source link

How to set locale to dd/mm/yy ? #31

Open daveit opened 8 years ago

daveit commented 8 years ago

Thanks for this gem - I've spend hours trying to find a date picker that I can get to work with Rails 4 - really impressed that the docs are straight forward and it was so easy.

But I need to change the default date format from mm/dd/yyyy to dd/mm/yyyy ?

TIA, Dave

ps: In date_format.rb in initializers it is set correctly: Date::DATE_FORMATS[:default] = "%d/%m/%Y" # 2013-11-03

ps2 I'm seeing this in the file anjlabs.widgets.rb - what is the cleanest way to change this?

when :en "%m/%d/%Y"