Changeset 113 for trunk/app

Show
Ignore:
Timestamp:
06/13/08 23:00:25 (7 months ago)
Author:
jweiss
Message:

convert TimeZone? to Rails 2.1 syntax

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/app/controllers/application.rb

    r86 r113  
    2020  def set_timezone 
    2121    # default timezone is UTC (Edinburgh) 
    22     TzTime.zone = logged_in? ? ( current_user.tz rescue TimeZone['Edinburgh']): TimeZone['Edinburgh'] 
     22    Time.zone = logged_in? ? ( current_user.tz rescue TimeZone['Edinburgh']): TimeZone['Edinburgh'] 
    2323    yield 
    24     TzTime.reset! 
    25     TzTime.zone = TimeZone['Edinburgh'] 
     24    Time.zone = TimeZone['Edinburgh'] 
    2625  end 
    2726