summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-10-22 01:25:29 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-10-22 01:25:29 +0000
commit8747974d4b40f99523f9f0b9373d62d3808aef16 (patch)
treeac43e1440734bbd71d18fb48b45f10fe48ec90c7 /test
parent3dc960deab6a8a36172dbcc029a84ed7e6e91d24 (diff)
time.c: optional arguments of Time::TM#initialize
* time.c (tm_initialize): arguments other than year are optional now as Time.new. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65296 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r--test/ruby/test_time_tz.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ruby/test_time_tz.rb b/test/ruby/test_time_tz.rb
index 9e4b956dbd..2da4fd8d9c 100644
--- a/test/ruby/test_time_tz.rb
+++ b/test/ruby/test_time_tz.rb
@@ -488,7 +488,7 @@ End
end
def add_offset(t, ofs)
- Time::TM.new(*Time.send(:apply_offset, *t.to_a[0, 6].reverse, ofs))
+ Time.utc(*Time.send(:apply_offset, *t.to_a[0, 6].reverse, ofs))
rescue => e
raise e.class, sprintf("%s: %p %+d", e.message, t, ofs)
end