Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

test_native_types expects DateTime.local_offset instead of DateTime.n…

…ow.offset; fixes test breakage due to dst transition

git-svn-id: 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
commit 8e21ec36cf110793d56fe281995939efd3533e34 1 parent f56c25d
@gbuesing gbuesing authored
2  activerecord/CHANGELOG
@@ -1,5 +1,7 @@
+* test_native_types expects DateTime.local_offset instead of; fixes test breakage due to dst transition [Geoff Buesing]
* Add :readonly option to HasManyThrough associations. #11156 [miloops]
* Improve performance on :include/:conditions/:limit queries by selectively joining in the pre-query. #9560 [dasil003]
2  activerecord/test/cases/migration_test.rb
@@ -330,7 +330,7 @@ def test_native_types
# Test DateTime column and defaults, including timezone.
# FIXME: moment of truth may be Time on 64-bit platforms.
if bob.moment_of_truth.is_a?(DateTime)
- assert_equal, bob.moment_of_truth.offset
+ assert_equal DateTime.local_offset, bob.moment_of_truth.offset
assert_not_equal 0, bob.moment_of_truth.offset
assert_not_equal "Z",
assert_equal DateTime::ITALY, bob.moment_of_truth.start

0 comments on commit 8e21ec3

Please sign in to comment.
Something went wrong with that request. Please try again.