From ebdfe41cff3f2fbb634d89d449c5c9c76357cf47 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Fri, 9 Oct 2015 19:49:54 +0000 Subject: [PATCH] Add debug info for random test failure. git-svn-id: http://svn.redmine.org/redmine/trunk@14669 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- test/unit/lib/redmine/i18n_test.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/unit/lib/redmine/i18n_test.rb b/test/unit/lib/redmine/i18n_test.rb index a2b81ab14..67823977d 100644 --- a/test/unit/lib/redmine/i18n_test.rb +++ b/test/unit/lib/redmine/i18n_test.rb @@ -118,8 +118,8 @@ class Redmine::I18nTest < ActiveSupport::TestCase set_language_if_valid 'en' now = Time.now with_settings :date_format => '%d %m %Y', :time_format => '%H %M' do - assert_equal now.strftime('%d %m %Y %H %M'), format_time(now.utc) - assert_equal now.strftime('%H %M'), format_time(now.utc, false) + assert_equal now.localtime.strftime('%d %m %Y %H %M'), format_time(now.utc), "User time zone was #{User.current.time_zone}" + assert_equal now.localtime.strftime('%H %M'), format_time(now.utc, false) end end -- 2.39.5