diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2008-03-26 21:01:30 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2008-03-26 21:01:30 +0000 |
commit | 35d3ede97447d70aae8db716cd2448f116014d68 (patch) | |
tree | 1c6f8b59c8158aa4970c710ee9e6fce4a8556be7 /railties/environments | |
parent | c366515abdecf750adfba574be89e8ec43c8553e (diff) | |
download | rails-35d3ede97447d70aae8db716cd2448f116014d68.tar.gz rails-35d3ede97447d70aae8db716cd2448f116014d68.tar.bz2 rails-35d3ede97447d70aae8db716cd2448f116014d68.zip |
New applications should use UTC as the default time zone
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9097 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'railties/environments')
-rw-r--r-- | railties/environments/environment.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/railties/environments/environment.rb b/railties/environments/environment.rb index 41210f9913..7d70c0f01c 100644 --- a/railties/environments/environment.rb +++ b/railties/environments/environment.rb @@ -32,6 +32,11 @@ Rails::Initializer.run do |config| # (by default production uses :info, the others :debug) # config.log_level = :debug + # Make Time.zone default to the specified zone, and make ActiveRecord store time values + # in the database in UTC, and return them converted to the specified local zone. + # Run `rake -D time` for a list of tasks for finding time zone names. Uncomment to use default local time. + config.time_zone = 'UTC' + # Your secret key for verifying cookie session data integrity. # If you change this key, all old sessions will become invalid! # Make sure the secret is at least 30 characters and all random, @@ -53,9 +58,4 @@ Rails::Initializer.run do |config| # Activate observers that should always be running # config.active_record.observers = :cacher, :garbage_collector - - # Make Time.zone default to the specified zone, and make ActiveRecord store time values - # in the database in UTC, and return them converted to the specified local zone. - # Run `rake -D time` for a list of tasks for finding time zone names. - # config.time_zone = 'UTC' end
\ No newline at end of file |