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

Changeset 9003

Show
Ignore:
Timestamp:
03/10/08 06:48:15 (4 months ago)
Author:
gbuesing
Message:

test_native_types expects DateTime.local_offset instead of DateTime.now.offset; fixes test breakage due to dst transition

Files:

Legend:

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

    r8989 r9003  
    11*SVN* 
     2 
     3* test_native_types expects DateTime.local_offset instead of DateTime.now.offset; fixes test breakage due to dst transition [Geoff Buesing] 
    24 
    35* Add :readonly option to HasManyThrough associations. #11156 [miloops] 
  • trunk/activerecord/test/cases/migration_test.rb

    r8873 r9003  
    331331      # FIXME: moment of truth may be Time on 64-bit platforms. 
    332332      if bob.moment_of_truth.is_a?(DateTime) 
    333         assert_equal DateTime.now.offset, bob.moment_of_truth.offset 
     333        assert_equal DateTime.local_offset, bob.moment_of_truth.offset 
    334334        assert_not_equal 0, bob.moment_of_truth.offset 
    335335        assert_not_equal "Z", bob.moment_of_truth.zone