From 1ec8a7f4e0acd45d960512d2736d90473714ad48 Mon Sep 17 00:00:00 2001 From: Geoff Buesing Date: Sat, 22 Mar 2008 02:23:09 +0000 Subject: Added config.time_zone = 'UTC' as a commented-out option in the default environment.rb git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9076 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- railties/environments/environment.rb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'railties/environments/environment.rb') diff --git a/railties/environments/environment.rb b/railties/environments/environment.rb index b2f5b2b0a5..830d4f451d 100644 --- a/railties/environments/environment.rb +++ b/railties/environments/environment.rb @@ -54,6 +54,8 @@ Rails::Initializer.run do |config| # Activate observers that should always be running # config.active_record.observers = :cacher, :garbage_collector - # Make Active Record use UTC-base instead of local time - # config.active_record.default_timezone = :utc + # 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 tasks for finding time zone names. + # config.time_zone = 'UTC' end \ No newline at end of file -- cgit v1.2.3