Skip to content

Commit

Permalink
Converted loaded exam end time to a Date
Browse files Browse the repository at this point in the history
  • Loading branch information
christianp committed Sep 5, 2023
1 parent a9d3b0e commit 60e9b78
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion runtime/scripts/exam.js
Original file line number Diff line number Diff line change
Expand Up @@ -622,7 +622,7 @@ Exam.prototype = /** @lends Numbas.Exam.prototype */ {
this.settings.numQuestions = numQuestions;
this.start = new Date(suspendData.start);
if(suspendData.stop) {
this.stop = suspendData.stop
this.stop = new Date(suspendData.stop);
}
if(this.settings.allowPause) {
this.timeSpent = suspendData.timeSpent;
Expand Down
2 changes: 1 addition & 1 deletion tests/numbas-runtime.js
Original file line number Diff line number Diff line change
Expand Up @@ -23751,7 +23751,7 @@ Exam.prototype = /** @lends Numbas.Exam.prototype */ {
this.settings.numQuestions = numQuestions;
this.start = new Date(suspendData.start);
if(suspendData.stop) {
this.stop = suspendData.stop
this.stop = new Date(suspendData.stop);
}
if(this.settings.allowPause) {
this.timeSpent = suspendData.timeSpent;
Expand Down

0 comments on commit 60e9b78

Please sign in to comment.