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

Changeset 8696

Show
Ignore:
Timestamp:
01/23/08 01:56:22 (4 months ago)
Author:
gbuesing
Message:

Introduce ActiveSupport::TimeWithZone, for wrapping Time instances with a TimeZone. Introduce instance methods to Time for creating TimeWithZone instances, and class methods for managing a global time zone

Files:

Legend:

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

    r8679 r8696  
    11*SVN* 
     2 
     3* Introduce ActiveSupport::TimeWithZone, for wrapping Time instances with a TimeZone. Introduce instance methods to Time for creating TimeWithZone instances, and class methods for managing a global time zone. [Geoff Buesing] 
    24 
    35* Replace non-dst-aware TimeZone class with dst-aware class from tzinfo_timezone plugin. TimeZone#adjust and #unadjust are no longer available; tzinfo gem must now be present in order to perform time zone calculations, via #local_to_utc and #utc_to_local methods. [Geoff Buesing] 
  • trunk/activesupport/lib/active_support.rb

    r8664 r8696  
    5151 
    5252require 'active_support/base64' 
     53 
     54require 'active_support/time_with_zone' 
  • trunk/activesupport/lib/active_support/core_ext/date_time.rb

    r7719 r8696  
    11require 'date' 
    22require 'active_support/core_ext/time/behavior' 
     3require 'active_support/core_ext/time/zones' 
    34require 'active_support/core_ext/date_time/calculations' 
    45require 'active_support/core_ext/date_time/conversions' 
     
    67class DateTime 
    78  include ActiveSupport::CoreExtensions::Time::Behavior 
     9  include ActiveSupport::CoreExtensions::Time::Zones 
    810  include ActiveSupport::CoreExtensions::DateTime::Calculations 
    911  include ActiveSupport::CoreExtensions::DateTime::Conversions 
  • trunk/activesupport/lib/active_support/core_ext/time.rb

    r7719 r8696  
    1212require 'active_support/core_ext/time/calculations' 
    1313require 'active_support/core_ext/time/conversions' 
     14require 'active_support/core_ext/time/zones' 
    1415 
    1516class Time#:nodoc: 
     
    1718  include ActiveSupport::CoreExtensions::Time::Calculations 
    1819  include ActiveSupport::CoreExtensions::Time::Conversions 
     20  include ActiveSupport::CoreExtensions::Time::Zones 
    1921end