mirror of
https://github.com/redmine/redmine.git
synced 2026-05-07 01:07:24 +02:00
r18537@gaspard (orig r1801): jplang | 2008-09-11 19:45:21 +0200
Template error when user's timezone isn't set and UTC timestamps are used (#1889). git-svn-id: http://redmine.rubyforge.org/svn/branches/nbc@1837 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -351,4 +351,12 @@ EXPECTED
|
||||
assert_equal now.strftime('%d %m %Y %H %M'), format_time(now)
|
||||
assert_equal now.strftime('%H %M'), format_time(now, false)
|
||||
end
|
||||
|
||||
def test_utc_time_format
|
||||
now = Time.now.utc
|
||||
Setting.date_format = '%d %m %Y'
|
||||
Setting.time_format = '%H %M'
|
||||
assert_equal Time.now.strftime('%d %m %Y %H %M'), format_time(now)
|
||||
assert_equal Time.now.strftime('%H %M'), format_time(now, false)
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user