diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-10-22 01:25:29 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-10-22 01:25:29 +0000 |
commit | 8747974d4b40f99523f9f0b9373d62d3808aef16 (patch) | |
tree | ac43e1440734bbd71d18fb48b45f10fe48ec90c7 /test/ruby | |
parent | 3dc960deab6a8a36172dbcc029a84ed7e6e91d24 (diff) | |
download | ruby-8747974d4b40f99523f9f0b9373d62d3808aef16.tar.gz |
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/ruby')
-rw-r--r-- | test/ruby/test_time_tz.rb | 2 |
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 |