Skip to content

Commit

Permalink
MOBILE-4616 assign: Fix late submission time calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
albertgasset committed Oct 23, 2024
1 parent 258650a commit b8d14fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/addons/mod/assign/components/submission/submission.ts
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ export class AddonModAssignSubmissionComponent implements OnInit, OnDestroy, Can
if (this.userSubmission && this.userSubmission.status === AddonModAssignSubmissionStatusValues.SUBMITTED) {
// Submitted, display the relevant early/late message.
const lateCalculation = this.userSubmission.timemodified -
(timeLimitEnabledBeforeDueDate ? this.userSubmission.timecreated : 0);
(timeLimitEnabledBeforeDueDate ? this.userSubmission.timestarted ?? 0 : 0);
const lateThreshold = timeLimitEnabledBeforeDueDate ? this.assign.timelimit || 0 : duedate;
const earlyString = timeLimitEnabledBeforeDueDate ? 'submittedundertime' : 'submittedearly';
const lateString = timeLimitEnabledBeforeDueDate ? 'submittedovertime' : 'submittedlate';
Expand Down

0 comments on commit b8d14fc

Please sign in to comment.