my time zone is set like this

config.time_zone = 'Tokyo'


I got this from console

>> temp1.updated_at
=> Tue, 06 Oct 2009 13:26:57 JST +09:00
>> temp1.updated_at.to_formatted_s(:db)
=> "2009-10-06 04:26:57"
>> temp1.updated_at.to_formatted_s(:long)
=> "October 06, 2009 13:26"


Can anyone tell me why I get different results when using :db
and :long in to_formatted_s?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to