Displaying 1 result from an estimated 1 matches for "datepicker_formats".
2012 Apr 30
0
custom lib for datepicker
...loop it prints what is
expected...
console output:
1.9.3p125 :001 > User.datepicker_attributes :created_at
=> [:created_at]
1.9.3p125 :002 > User.new.created_at = "10/10/2012 10:12"
=> "10/10/2012 10:12"
debugger outside the loop.
(rdb:1) p I18n.t(''time.datepicker_formats'').values.first
"%d/%m/%Y %H:%M"
(rdb:1) p Time.strptime(date,
I18n.t(''time.datepicker_formats'').values.first)
2012-10-10 10:12:00 +0200
I''m a little stuck on that, any tip will be appreciated
--
Posted via http://www.ruby-forum.com/.
--
You recei...