diff options
-rw-r--r-- | test/ruby/test_time.rb | 2 |
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) |