On 30 August 2010 10:47, Mauro
<mrsanna1-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:> I don''t know if timezone really works in rails.
> In my rails 3 application.rb file I have:
>
> config.time_zone = ''Rome''
> config.i18n.default_locale = :it
> config.encoding = "utf-8"
>
> My database is postgres.
> I''ve created some migrations and put some records.
> The time in created_at and updated_at fields is 2 hours back.
> Why?
All times put into the db should be in UTC, is that what you are
seeing? Make sure you look directly in the db to check this, do not
use Rails as then you may be seeing it adjusted unless you are
careful.
Colin
--
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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.