@@ -131,15 +131,6 class Redmine::I18nTest < ActiveSupport::TestCase | |||
|
131 | 131 | end |
|
132 | 132 | end |
|
133 | 133 | |
|
134 | def test_time_format | |
|
135 | set_language_if_valid 'en' | |
|
136 | now = Time.now | |
|
137 | Setting.date_format = '%d %m %Y' | |
|
138 | Setting.time_format = '%H %M' | |
|
139 | assert_equal now.strftime('%d %m %Y %H %M'), format_time(now) | |
|
140 | assert_equal now.strftime('%H %M'), format_time(now, false) | |
|
141 | end | |
|
142 | ||
|
143 | 134 | def test_utc_time_format |
|
144 | 135 | set_language_if_valid 'en' |
|
145 | 136 | now = Time.now |
General Comments 0
You need to be logged in to leave comments.
Login now