summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2021-02-16 19:28:28 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2021-02-16 20:34:23 +0900
commit5b7439bb7b1088ef5233175893229970cee339fd (patch)
tree6f2847cde90d0970dd5f73e7f1d3edc1c6dcc5af /test
parent9ef66ce3fcfee06d628b611dbc22026d7cc72d0e (diff)
UTC zone should be still "+00:00" [Feature #17544]
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/4075
Diffstat (limited to 'test')
-rw-r--r--test/ruby/test_time.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/ruby/test_time.rb b/test/ruby/test_time.rb
index 4e8689bbda..5d2c7b71de 100644
--- a/test/ruby/test_time.rb
+++ b/test/ruby/test_time.rb
@@ -925,6 +925,12 @@ class TestTime < Test::Unit::TestCase
assert_equal("-0000", t2000.strftime("%-z"))
assert_equal("-00:00", t2000.strftime("%-:z"))
assert_equal("-00:00:00", t2000.strftime("%-::z"))
+
+ t = t2000.getlocal("+00:00")
+ assert_equal("+0000", t.strftime("%z"))
+ assert_equal("+0000", t.strftime("%-z"))
+ assert_equal("+00:00", t.strftime("%-:z"))
+ assert_equal("+00:00:00", t.strftime("%-::z"))
end
def test_strftime_padding