Changeset 113
- Timestamp:
- 06/13/08 23:00:25 (5 months ago)
- Location:
- trunk
- Files:
-
- 3 removed
- 3 modified
-
CHANGELOG.txt (modified) (1 diff)
-
app/controllers/application.rb (modified) (1 diff)
-
config/environment.rb (modified) (2 diffs)
-
vendor/plugins/tzinfo-0.3.5 (deleted)
-
vendor/plugins/tzinfo_timezone (deleted)
-
vendor/plugins/tztime (deleted)
Legend:
- Unmodified
- Added
- Removed
-
trunk/CHANGELOG.txt
r109 r113 1 1 2 2 SVN 3 4 * Update to Rails 2.1 3 5 4 6 * Add /projects/1/stages/1/deployments/latest. Provided by Mathias Meyer -
trunk/app/controllers/application.rb
r86 r113 20 20 def set_timezone 21 21 # default timezone is UTC (Edinburgh) 22 T zTime.zone = logged_in? ? ( current_user.tz rescue TimeZone['Edinburgh']): TimeZone['Edinburgh']22 Time.zone = logged_in? ? ( current_user.tz rescue TimeZone['Edinburgh']): TimeZone['Edinburgh'] 23 23 yield 24 TzTime.reset! 25 TzTime.zone = TimeZone['Edinburgh'] 24 Time.zone = TimeZone['Edinburgh'] 26 25 end 27 26 -
trunk/config/environment.rb
r93 r113 59 59 60 60 # Make Active Record use UTC-base instead of local time 61 config. active_record.default_timezone = :utc61 config.time_zone = 'UTC' 62 62 end 63 63 … … 100 100 # set default time_zone to UTC 101 101 ENV['TZ'] = 'UTC' 102 T zTime.zone = TimeZone['Edinburgh']102 Time.zone = TimeZone['Edinburgh']
