Submission displaying as late (Moodle 4.1)

Submission displaying as late (Moodle 4.1)

από Steven Lee -
Αριθμός απαντήσεων: 4
The "Time Remaining" field on a student's assignment submission page is displaying as "Assignment was submitted 21 days 10 hours late"; however, when I check the log it shows that the submission file was uploaded and the submission was created two days prior to the due date? Can anyone shed any insight on why this might occur?
Μέσος όρος βαθμολογίας: -
Σε απάντηση σε Steven Lee

Re: Submission displaying as late (Moodle 4.1)

από Huong Trinh -
Hi Steven,
Is there any chance that an extension had been granted for this student and that the student submitted their assignment in between the original due date and their due date?
Σε απάντηση σε Steven Lee

Re: Submission displaying as late (Moodle 4.1)

από Michael Hughes -
Φωτογραφία Core developers Φωτογραφία Plugin developers
This is one of the things that I think a lot of people don't see because it's under the hood.

In the assign module a student gets a "submission record", which ties all of their stuff together (coincidently this is also generated on the fly when it is first needed).

Separately to that submission plugins have their own timestamps, so for the file assign_submission plugin it's the plugin that's tracking the upload time. It's also this subplugin, not the assign plugin, that emits the event for the log that says when the file was uploaded (via a \assignsubmission_file\event\submission_created event)

When the file is uploaded the upload time is noted, and the last modified time on the submission records changed.

However it is possible for the last modified timestamp for the submission record to change, without the file submission plugin's upload time changing.

This could be as simple as the student going into the file submission changing nothing and hitting save. The file upload timestamps don't change (these are captured as part of the file information and in the event that is raised when they change), but the submission record's timestamp has changed.

This makes considering settings something like a cut-off date to completely prevent the submission  being changed, but also the issue raised in https://tracker.moodle.org/browse/MDL-72748 where students can modify their submission after grading (in this case remove their submission).