summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-02-01 22:18:28 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-02-01 22:18:28 +0000
commitab6a38c9e5cff35e06d9c0e46587bfb285f819e1 (patch)
treeb5f3954b44e3100b790b11011f3f247cfefb8981
parent991a57b1606f3fa4ca9acaa79e7ca01f11dbe02c (diff)
test_time.rb: use UTC
* test/ruby/test_time.rb (test_strftime_no_hidden_garbage): fix failure due to timezone offset. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57494 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--test/ruby/test_time.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ruby/test_time.rb b/test/ruby/test_time.rb
index a0d65b6495..48bc01d977 100644
--- a/test/ruby/test_time.rb
+++ b/test/ruby/test_time.rb
@@ -1092,7 +1092,7 @@ class TestTime < Test::Unit::TestCase
def test_strftime_no_hidden_garbage
fmt = %w(Y m d).map { |x| "%#{x}" }.join('-') # defeats optimization
- t = Time.at(0)
+ t = Time.at(0).getutc
ObjectSpace.count_objects(res = {}) # creates strings on first call
before = ObjectSpace.count_objects(res)[:T_STRING]
val = t.strftime(fmt)