@@ -101,11 +101,11 class Redmine::I18nTest < ActiveSupport::TestCase | |||||
101 |
|
101 | |||
102 | def test_utc_time_format |
|
102 | def test_utc_time_format | |
103 | set_language_if_valid 'en' |
|
103 | set_language_if_valid 'en' | |
104 |
now = Time.now |
|
104 | now = Time.now | |
105 | Setting.date_format = '%d %m %Y' |
|
105 | Setting.date_format = '%d %m %Y' | |
106 | Setting.time_format = '%H %M' |
|
106 | Setting.time_format = '%H %M' | |
107 |
assert_equal |
|
107 | assert_equal now.strftime('%d %m %Y %H %M'), format_time(now.utc) | |
108 |
assert_equal |
|
108 | assert_equal now.strftime('%H %M'), format_time(now.utc, false) | |
109 | end |
|
109 | end | |
110 |
|
110 | |||
111 | def test_number_to_human_size_for_each_language |
|
111 | def test_number_to_human_size_for_each_language |
General Comments 0
You need to be logged in to leave comments.
Login now