Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
OHR Support
Manage
Activity
Members
Labels
Plan
Issues
97
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Projects
OHR Support
Commits
a107202a
Commit
a107202a
authored
13 years ago
by
Holger Just
Browse files
Options
Downloads
Patches
Plain Diff
Fix race-condition in test_utc_time_format
parent
61b9939b
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
test/unit/lib/redmine/i18n_test.rb
+3
-3
3 additions, 3 deletions
test/unit/lib/redmine/i18n_test.rb
with
3 additions
and
3 deletions
test/unit/lib/redmine/i18n_test.rb
+
3
−
3
View file @
a107202a
...
...
@@ -96,11 +96,11 @@ class Redmine::I18nTest < ActiveSupport::TestCase
def
test_utc_time_format
set_language_if_valid
'en'
now
=
Time
.
now
.
utc
now
=
Time
.
now
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
)
assert_equal
now
.
strftime
(
'%d %m %Y %H %M'
),
format_time
(
now
.
utc
)
assert_equal
now
.
strftime
(
'%H %M'
),
format_time
(
now
.
utc
,
false
)
end
def
test_number_to_human_size_for_each_language
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment