Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

MDL-39246 quiz timer: compute a more accurate stop time.

  • Loading branch information...
commit a35ce084936ba6ec1014635d2c740ac690161a2a 1 parent 15dedb1
Tim Hunt timhunt authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  mod/quiz/module.js
2  mod/quiz/module.js
View
@@ -65,7 +65,7 @@ M.mod_quiz.timer = {
*/
init: function(Y, start, preview) {
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.update();
Y.one('#quiz-timer').setStyle('display', 'block');
Please sign in to comment.
Something went wrong with that request. Please try again.