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

mod_quiz: Fix timecreated is 0 when creating a quiz activity

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 3.8.3, 3.9, 3.10
    • 3.8.5, 3.9.2
    • Quiz

    Description

      When creating a quiz activity, the timecreated field on the mdl_quiz table does not get a timestamp. Instead, it always get a value of 0.

      SELECT id, name, timecreated, timemodified FROM mdl_quiz;
      id: 1
      name: quiz1
      timecreated: 0
      timemodified: 1594382713

      Expected result: The timecreated field should be populated with the correct value/timestamp.

      Attachments

        Activity

          People

            timhunt Tim Hunt
            jebarvia Joshua Ebarvia
            Joshua Ebarvia Joshua Ebarvia
            Andrew Lyons Andrew Lyons
            Janelle Barcega Janelle Barcega
            Tim Hunt, Amaia Anabitarte, Bas Brands, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Kevin Percy, Laurent David, Mathew May, Mihail Geshoski, Raquel Ortega, Sabina Abellan, Sander Bangma, Sara Arjona (@sarjona), Shamim Rezaie
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              14/Sep/20

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 25 minutes
                25m