Skip to content

Commit

Permalink
MDL-74064 mod_assign: Late submission recognition depends on timestarted
Browse files Browse the repository at this point in the history
  • Loading branch information
rezaies authored and HuongNV13 committed Apr 14, 2022
1 parent 5423e5f commit 76c0d3d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mod/assign/classes/output/renderer.php
Expand Up @@ -1305,7 +1305,7 @@ protected function get_time_remaining(\mod_assign\output\assign_submission_statu

// There is a submission, display the relevant early/late message.
if ($submission && $submission->status == ASSIGN_SUBMISSION_STATUS_SUBMITTED) {
$latecalculation = $submission->timemodified - ($timelimitenabledbeforeduedate ? $submission->timecreated : 0);
$latecalculation = $submission->timemodified - ($timelimitenabledbeforeduedate ? $submission->timestarted : 0);
$latethreshold = $timelimitenabledbeforeduedate ? $status->timelimit : $status->duedate;
$earlystring = $timelimitenabledbeforeduedate ? 'submittedundertime' : 'submittedearly';
$latestring = $timelimitenabledbeforeduedate ? 'submittedovertime' : 'submittedlate';
Expand Down

0 comments on commit 76c0d3d

Please sign in to comment.