From 4be9bf1f67b997fc519625d56a93b8a68a70d124 Mon Sep 17 00:00:00 2001 From: nagachika Date: Thu, 23 Jul 2020 11:33:11 +0900 Subject: merge revision(s) 99a9c3fe2eaab8157765d792dc871da6daea0327: [Backport #17024] Fixed yday and wday with timezone [Bug #17024] --- test/ruby/test_time_tz.rb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'test/ruby/test_time_tz.rb') diff --git a/test/ruby/test_time_tz.rb b/test/ruby/test_time_tz.rb index 83482eac65..7f0a306783 100644 --- a/test/ruby/test_time_tz.rb +++ b/test/ruby/test_time_tz.rb @@ -608,6 +608,8 @@ module TestTimeTZ::WithTZ assert_equal([2018, 9, 1, 12, 0, 0, tz], [t.year, t.mon, t.mday, t.hour, t.min, t.sec, t.zone]) h, m = (-utc_offset / 60).divmod(60) assert_equal(time_class.utc(2018, 9, 1, 12+h, m, 0).to_i, t.to_i) + assert_equal(6, t.wday) + assert_equal(244, t.yday) end def subtest_now(time_class, tz, tzarg, tzname, abbr, utc_offset) -- cgit v1.2.3