From a8178c69bee18250aa022bb270390279487a8618 Mon Sep 17 00:00:00 2001 From: akr Date: Mon, 7 Oct 2013 21:00:12 +0000 Subject: * lib/time.rb (Time.strptime): Time.strptime('0', '%s') returns local time Time object as Ruby 2.0 and before. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43191 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/test_time.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test') diff --git a/test/test_time.rb b/test/test_time.rb index 1c95370df6..582e60b8ae 100644 --- a/test/test_time.rb +++ b/test/test_time.rb @@ -400,7 +400,7 @@ class TestTimeExtension < Test::Unit::TestCase # :nodoc: def test_strptime assert_equal(Time.utc(2005, 8, 28, 06, 54, 20), Time.strptime("28/Aug/2005:06:54:20 +0000", "%d/%b/%Y:%T %z")) assert_equal(Time.at(1).localtime, Time.strptime("1", "%s")) - assert_equal(0, Time.strptime('0', '%s').utc_offset) + assert_equal(false, Time.strptime('0', '%s').utc?) assert_equal(3600, Time.strptime('0 +0100', '%s %z').utc_offset) end -- cgit v1.2.3