Permalink
Browse files

ActiveRecord :default_timezone is :utc in Rails, as set by active_rec…

…ord/railtie.rb
  • Loading branch information...
1 parent cc2b271 commit 58dccf305a63e5a77695206453a669bb3fffa17f @pda pda committed Feb 7, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 railties/guides/source/configuring.textile
@@ -218,7 +218,7 @@ h4. Configuring Active Record
* +config.active_record.pluralize_table_names+ specifies whether Rails will look for singular or plural table names in the database. If set to +true+ (the default), then the Customer class will use the +customers+ table. If set to +false+, then the Customers class will use the +customer+ table.
-* +config.active_record.default_timezone+ determines whether to use +Time.local+ (if set to +:local+) or +Time.utc+ (if set to +:utc+) when pulling dates and times from the database. The default is +:local+.
+* +config.active_record.default_timezone+ determines whether to use +Time.local+ (if set to +:local+) or +Time.utc+ (if set to +:utc+) when pulling dates and times from the database. The default is +:utc+ for Rails, although ActiveRecord defaults to +:local+ when used outside of Rails.
* +config.active_record.schema_format+ controls the format for dumping the database schema to a file. The options are +:ruby+ (the default) for a database-independent version that depends on migrations, or +:sql+ for a set of (potentially database-dependent) SQL statements.

0 comments on commit 58dccf3

Please sign in to comment.