aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib
diff options
context:
space:
mode:
authorAkira Matsuda <ronnie@dio.jp>2012-01-21 20:07:12 +0900
committerAkira Matsuda <ronnie@dio.jp>2012-01-21 20:07:12 +0900
commitbd603399639fe7dd12e532a89210760fa564440c (patch)
tree36798720cbf01f3c20f5353c0b6104f076e9d536 /activerecord/lib
parent2e13850e4c8245214568b7e133908af7db9dbb9f (diff)
downloadrails-bd603399639fe7dd12e532a89210760fa564440c.tar.gz
rails-bd603399639fe7dd12e532a89210760fa564440c.tar.bz2
rails-bd603399639fe7dd12e532a89210760fa564440c.zip
change AR default_timezone to :utc since it's the default for AR::Railtie
Diffstat (limited to 'activerecord/lib')
-rw-r--r--activerecord/lib/active_record/core.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/activerecord/lib/active_record/core.rb b/activerecord/lib/active_record/core.rb
index e90503d173..adba3f710c 100644
--- a/activerecord/lib/active_record/core.rb
+++ b/activerecord/lib/active_record/core.rb
@@ -45,10 +45,10 @@ module ActiveRecord
##
# :singleton-method:
- # Determines whether to use Time.local (using :local) or Time.utc (using :utc) when pulling
- # dates and times from the database. This is set to :local by default.
+ # Determines whether to use Time.utc (using :utc) or Time.local (using :local) when pulling
+ # dates and times from the database. This is set to :utc by default.
config_attribute :default_timezone, :global => true
- self.default_timezone = :local
+ self.default_timezone = :utc
##
# :singleton-method: