On Oct 6, 6:05 am, boblu <bobl...@gmail.com> wrote:
> 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?

Why would you expect them to be the same ?

Fred
--~--~---------~--~----~------------~-------~--~----~
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