##// END OF EJS Templates
Fixes potential test failure....
Jean-Philippe Lang -
r5378:f0dfff4866fd
parent child
Show More
@@ -101,11 +101,11 class Redmine::I18nTest < ActiveSupport::TestCase
101 101
102 102 def test_utc_time_format
103 103 set_language_if_valid 'en'
104 now = Time.now.utc
104 now = Time.now
105 105 Setting.date_format = '%d %m %Y'
106 106 Setting.time_format = '%H %M'
107 assert_equal Time.now.strftime('%d %m %Y %H %M'), format_time(now)
108 assert_equal Time.now.strftime('%H %M'), format_time(now, false)
107 assert_equal now.strftime('%d %m %Y %H %M'), format_time(now.utc)
108 assert_equal now.strftime('%H %M'), format_time(now.utc, false)
109 109 end
110 110
111 111 def test_number_to_human_size_for_each_language
General Comments 0
You need to be logged in to leave comments. Login now