Commit e0fc962b authored by Robert Czechowski's avatar Robert Czechowski
Browse files

Fix time calculations for contest time left in task template

parent bb5d2b44
...@@ -117,7 +117,7 @@ Verbleibende Zeit ...@@ -117,7 +117,7 @@ Verbleibende Zeit
var seconds_left = seconds_left_at_start - seconds_passed; var seconds_left = seconds_left_at_start - seconds_passed;
var hour = seconds_left / 3600 | 0; 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; var sec = seconds_left % 60 | 0;
text = hour.toString() + ":" + lz(min) + "<span id=\"ttsec\">:" + lz(sec) + "</span>"; text = hour.toString() + ":" + lz(min) + "<span id=\"ttsec\">:" + lz(sec) + "</span>";
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment