From 0fe5d0f60df11203be9a5ace1ead2895759f456a Mon Sep 17 00:00:00 2001 From: usa Date: Tue, 2 Mar 2021 11:44:02 +0000 Subject: merge revision(s) 99a9c3fe: [Backport #17024] Fixed yday and wday with timezone [Bug #17024] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_6@67911 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/ruby/test_time_tz.rb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'test/ruby') diff --git a/test/ruby/test_time_tz.rb b/test/ruby/test_time_tz.rb index 21ac667281..f91cd66376 100644 --- a/test/ruby/test_time_tz.rb +++ b/test/ruby/test_time_tz.rb @@ -548,6 +548,8 @@ module TestTimeTZ::WithTZ m, s = (4000-utc_offset).divmod(60) h, m = m.divmod(60) assert_equal(time_class.utc(2018, 9, 1, 12+h, m, s), t) + assert_equal(6, t.wday) + assert_equal(244, t.yday) end def subtest_at(time_class, tz, tzarg, tzname, abbr, utc_offset) -- cgit v1.2.3