Skip to content

Commit

Permalink
MDL-39246 quiz timer: compute a more accurate stop time.
Browse files Browse the repository at this point in the history
  • Loading branch information
timhunt committed Apr 26, 2013
1 parent 15dedb1 commit a35ce08
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mod/quiz/module.js
Expand Up @@ -65,7 +65,7 @@ M.mod_quiz.timer = {
*/ */
init: function(Y, start, preview) { init: function(Y, start, preview) {
M.mod_quiz.timer.Y = Y; M.mod_quiz.timer.Y = Y;
M.mod_quiz.timer.endtime = new Date().getTime() + start*1000; M.mod_quiz.timer.endtime = M.pageloadstarttime.getTime() + start*1000;
M.mod_quiz.timer.preview = preview; M.mod_quiz.timer.preview = preview;
M.mod_quiz.timer.update(); M.mod_quiz.timer.update();
Y.one('#quiz-timer').setStyle('display', 'block'); Y.one('#quiz-timer').setStyle('display', 'block');
Expand Down

0 comments on commit a35ce08

Please sign in to comment.