Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-16843

Online Assignment "Last edited" date displays 'Wednesday, December 31, 1969, 07:00 PM (0 words)' if submitted date is 0

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Won't Fix
    • Affects Version/s: 1.9.2
    • Fix Version/s: None
    • Component/s: Assignment (2.2)
    • Labels:
      None
    • Affected Branches:
      MOODLE_19_STABLE

      Description

      I don't know how it happens, but somehow an assignment is submitted but the modified timestamp is still 0.

      I quick fix to the problem is to change

      if ($submission) {

      to

      if (!empty($submission->timemodified)) {

      on line 148 of assignment.class.php

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              moodle.com moodle.com
              Reporter:
              syxton Matthew Davidson
              Participants:
              Component watchers:
              Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias, Sujith Haridasan
              Votes:
              2 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: