From ab73b30539bab0473eb9997f0d37ea00449eb9d3 Mon Sep 17 00:00:00 2001 From: nobu Date: Wed, 28 Nov 2018 14:08:33 +0000 Subject: Time.at in: tz git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66078 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/ruby/test_time_tz.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (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 777f02bed9..379f2f65f3 100644 --- a/test/ruby/test_time_tz.rb +++ b/test/ruby/test_time_tz.rb @@ -547,11 +547,11 @@ module TestTimeTZ::WithTZ def subtest_at(time_class, tz, tzarg, tzname, abbr, utc_offset) h, m = (utc_offset / 60).divmod(60) utc = time_class.utc(2018, 9, 1, 12, 0, 0) - t = time_class.at(utc, tzarg) + t = time_class.at(utc, in: tzarg) assert_equal([2018, 9, 1, 12+h, m, 0, tz], [t.year, t.mon, t.mday, t.hour, t.min, t.sec, t.zone]) assert_equal(utc.to_i, t.to_i) utc = utc.to_i - t = time_class.at(utc, tzarg) + t = time_class.at(utc, in: tzarg) assert_equal([2018, 9, 1, 12+h, m, 0, tz], [t.year, t.mon, t.mday, t.hour, t.min, t.sec, t.zone]) assert_equal(utc, t.to_i) end -- cgit v1.2.3