search for: my_format_2

Displaying 1 result from an estimated 1 matches for "my_format_2".

Did you mean: my_format_1
2006 Mar 23
5
Custom date format
...n''t work for me... article.date_edited.to_formatted_s(:my_format_1) produce a default formatted date, not the one I''ve defined in environment.rb : ActiveSupport::CoreExtensions::Date::Conversions::DATE_FORMATS.merge!( :my_format_1 => ''%d/%m/%Y - %H:%M'', :my_format_2 => ''%l:%M %p, %B %d, %Y'' ) What''s wrong ? Thanks -- Posted via http://www.ruby-forum.com/.