From eee581f9432b7a4d18f51bb09ca384954c91b1e9 Mon Sep 17 00:00:00 2001 From: nobu Date: Sun, 2 May 2010 09:12:07 +0000 Subject: * test/json/test_json_addition.rb (test_utc_datetime): fixed timezone offsets. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27590 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/json/test_json_addition.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test') diff --git a/test/json/test_json_addition.rb b/test/json/test_json_addition.rb index d30853af48..844cd4f7ae 100755 --- a/test/json/test_json_addition.rb +++ b/test/json/test_json_addition.rb @@ -154,9 +154,9 @@ class TC_JSONAddition < Test::Unit::TestCase assert_equal d, JSON.parse(d.to_json) d = DateTime.parse(now.utc.to_s) # of = 0 assert_equal d, JSON.parse(d.to_json) - d = DateTime.civil(2008, 6, 17, 11, 48, 32, 1) # of = 1 / 12 => 1/12 + d = DateTime.civil(2008, 6, 17, 11, 48, 32, Rational(1,24)) assert_equal d, JSON.parse(d.to_json) - d = DateTime.civil(2008, 6, 17, 11, 48, 32, 12) # of = 12 / 12 => 12 + d = DateTime.civil(2008, 6, 17, 11, 48, 32, Rational(12,24)) assert_equal d, JSON.parse(d.to_json) end end -- cgit v1.2.3