Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Changeset 9076

Show
Ignore:
Timestamp:
03/22/08 02:23:09 (6 months ago)
Author:
gbuesing
Message:

Added config.time_zone = 'UTC' as a commented-out option in the default environment.rb

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/railties/CHANGELOG

    r9074 r9076  
    11*SVN* 
     2 
     3* Added config.time_zone = 'UTC' as a commented-out option in the default environment.rb [Geoff Buesing] 
    24 
    35* Adding rake tasks time:zones:all, time:zones:us and time:zones:local for finding time zone names for config.time_zone option [Geoff Buesing] 
  • trunk/railties/environments/environment.rb

    r8887 r9076  
    5555  # config.active_record.observers = :cacher, :garbage_collector 
    5656 
    57   # Make Active Record use UTC-base instead of local time 
    58   # config.active_record.default_timezone = :utc 
     57  # Make Time.zone default to the specified zone, and make ActiveRecord store time values 
     58  # in the database in UTC, and return them converted to the specified local zone. 
     59  # Run `rake -D time` for a list tasks for finding time zone names. 
     60  # config.time_zone = 'UTC' 
    5961end