summaryrefslogtreecommitdiff
path: root/test/psych
diff options
context:
space:
mode:
Diffstat (limited to 'test/psych')
-rw-r--r--test/psych/test_json_tree.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/psych/test_json_tree.rb b/test/psych/test_json_tree.rb
index 5fcb0d6a37..98c4678982 100644
--- a/test/psych/test_json_tree.rb
+++ b/test/psych/test_json_tree.rb
@@ -41,8 +41,8 @@ module Psych
end
def test_time
- time = Time.new(2010, 10, 10).utc
- assert_equal "{\"a\": \"2010-10-10 07:00:00.000000000Z\"}\n", Psych.to_json({'a' => time })
+ time = Time.utc(2010, 10, 10).utc
+ assert_equal "{\"a\": \"2010-10-10 00:00:00.000000000Z\"}\n", Psych.to_json({'a' => time })
end
def test_datetime