Forum: Ruby on Rails config.default_timezone vs. config.time_zone

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
171ea139761951336b844e708d1547ab?d=identicon&s=25 James Byrne (byrnejb)
on 2009-02-10 18:07
In config/environment.rb are these statements equivalent?

config.default_timezone = :utc
config.time_zone = "UTC"

If not, then how do they differ in effect?
171ea139761951336b844e708d1547ab?d=identicon&s=25 James Byrne (byrnejb)
on 2009-02-10 18:07
James Byrne wrote:

Should have been:

> In config/environment.rb are these statements equivalent?
>
> config.active_record.default_timezone = :utc
> config.time_zone = "UTC"
>
> If not, then how do they differ in effect?
This topic is locked and can not be replied to.