diff options
author | Andrew White <pixeltrix@users.noreply.github.com> | 2017-03-02 07:57:10 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-02 07:57:10 +0000 |
commit | a815c7c7214d0c45194bc9b097e20f50a2b0aab1 (patch) | |
tree | 19cf5409d5477bd4d0bf416dd8b90d7a2ead0271 /activerecord | |
parent | 22e33e464c81167633c7d1e5aac3b9dd4bf5fc1f (diff) | |
parent | b5af751508281483845d4323177b0aec98a11880 (diff) | |
download | rails-a815c7c7214d0c45194bc9b097e20f50a2b0aab1.tar.gz rails-a815c7c7214d0c45194bc9b097e20f50a2b0aab1.tar.bz2 rails-a815c7c7214d0c45194bc9b097e20f50a2b0aab1.zip |
Merge pull request #28242 from rails/add-fractional-support-to-datetime-change
Update `DateTime#change` to support usec and nsec
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/test/cases/date_time_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/cases/date_time_test.rb b/activerecord/test/cases/date_time_test.rb index 3bc08f80ec..ad7da9de70 100644 --- a/activerecord/test/cases/date_time_test.rb +++ b/activerecord/test/cases/date_time_test.rb @@ -52,7 +52,7 @@ class DateTimeTest < ActiveRecord::TestCase end def test_assign_in_local_timezone - now = DateTime.now + now = DateTime.civil(2017, 3, 1, 12, 0, 0) with_timezone_config default: :local do task = Task.new starting: now assert_equal now, task.starting |