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

Changeset 8851

Show
Ignore:
Timestamp:
02/10/08 19:15:32 (5 months ago)
Author:
gbuesing
Message:

Pruning unneeded TimeWithZone#change_time_zone_to_current

Files:

Legend:

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

    r8850 r8851  
    11*SVN* 
     2 
     3* Pruning unneeded TimeWithZone#change_time_zone_to_current [Geoff Buesing] 
    24 
    35* Time#zone=, #in_time_zone and #change_time_zone accept a Duration [Geoff Buesing] 
  • trunk/activesupport/lib/active_support/time_with_zone.rb

    r8732 r8851  
    4141    def change_time_zone(new_zone) 
    4242      time.change_time_zone(new_zone) 
    43     end 
    44    
    45     # Changes the time zone to Time.zone without converting the time 
    46     def change_time_zone_to_current 
    47       time.change_time_zone_to_current 
    4843    end 
    4944