diff --git a/mod/quiz/locallib.php b/mod/quiz/locallib.php index fb6231e776a..942563e0026 100644 --- a/mod/quiz/locallib.php +++ b/mod/quiz/locallib.php @@ -872,8 +872,8 @@ function quiz_send_notification_emails($course, $quiz, $attempt, $context, $cm) $a->quizlink = '' . format_string($quiz->name) . ''; $a->quizurl = $CFG->wwwroot . '/mod/quiz/view.php?q=' . $quiz->id; // attempt info - $a->attemptsubmissiontime = userdate($attempt->timefinish); - $a->attempttimetaken = $attempt->timefinish - $attempt->timestart; + $a->submissiontime = userdate($attempt->timefinish); + $a->timetaken = format_time($attempt->timefinish - $attempt->timestart); // student who sat the quiz info $a->studentidnumber = $USER->idnumber; $a->studentname = fullname($USER);