To_formatted_s(:rfc822) doesn't work


#1

I do ‘@item.datetime.to_formatted_s(:rfc822)’ and it
outputs:

2003-08-06T04:12:00-0600

‘:db’ doesn’t work either, but ‘:short’ does. How can
I output rfc822 without actually putting all that
awful % code in my templates? I’ve also tried this in
environment.rb, but it still doesn’t work:

ActiveSupport::CoreExtensions::Time::Conversions::DATE_FORMATS.merge!(:rfc822
=> “%a, %d %b %Y %H:%M:%S %z”)

Also, why does strftime() work, but not rfc822()?

thanks
csn


Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com