Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
bwinf
medal
Commits
e0fc962b
Commit
e0fc962b
authored
Feb 11, 2020
by
Robert Czechowski
Browse files
Fix time calculations for contest time left in task template
parent
bb5d2b44
Changes
1
Hide whitespace changes
Inline
Side-by-side
templates/default/task.hbs
View file @
e0fc962b
...
...
@@ -117,7 +117,7 @@ Verbleibende Zeit
var
seconds_left
=
seconds_left_at_start
-
seconds_passed
;
var
hour
=
seconds_left
/
3600
|
0
;
var
min
=
seconds_left
/
60
|
0
%
60
|
0
;
var
min
=
(
seconds_left
/
60
|
0
)
%
60
|
0
;
var
sec
=
seconds_left
%
60
|
0
;
text
=
hour
.
toString
()
+
"
:
"
+
lz
(
min
)
+
"
<span id=
\"
ttsec
\"
>:
"
+
lz
(
sec
)
+
"
</span>
"
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment