On 30 August 2010 10:47, Mauro <[email protected]> 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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to