diff options
author | kosaki <kosaki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-01-20 14:34:39 +0000 |
---|---|---|
committer | kosaki <kosaki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-01-20 14:34:39 +0000 |
commit | d41d2f26ceeca3078aa8faff704e571247eb87e8 (patch) | |
tree | 3f194f7645a048816ab04614e8079b46caca593e /test | |
parent | cffda96b47bfd0451eb7bb04a0a58d8983fc8aca (diff) | |
download | ruby-d41d2f26ceeca3078aa8faff704e571247eb87e8.tar.gz |
* configure.in: Add '#include <stdlib.h>' to
rb_cv_localtime_overflow test too. It's reported by Tomoyuki
Chikanaga. Thanks.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30615 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r-- | test/psych/test_json_tree.rb | 4 |
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 |