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

Resetting course start date (and TIME) changes module dates incorrectly

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Minor Minor
    • None
    • 4.1
    • Course
    • MOODLE_401_STABLE

      By resetting the course start date in the reset form, teachers can also reset dates associated with course modules.

      Since Moodle 3.5, the reset form includes the time of the start date. (MDL-43648)

      If the start time is set in the reset form, dates (and times) associated with course modules may be incorrectly changed because $timeshift is incorrectly computed with the old start date ignoring the time part using usergetmidnight().

      Reproduction Steps:

      1. Create a course starting at 8:00 am today.
      2. Create an assignment opening at 9:00 am today.
      3. Reset the course start date at 1:00 pm (13:00) tomorrow.
        • Immediately after the reset, the old opening date of the assignment is shown in the course page and the assignment page; this is another issue.
      4. Open the assignment settings and you see the opening date is 10:00 pm (22:00) tomorrow although the expected is 2:00 pm (14:00) tomorrow (1 hour after the course start time).

        1. BC-76882.png
          91 kB
          Kim Jared Lucas
        2. 01-moodle41running.png
          21 kB
          Hiroto Kagotani
        3. 02-newcourse.png
          61 kB
          Hiroto Kagotani
        4. 03-newassignment.png
          98 kB
          Hiroto Kagotani
        5. 04-assignmentincourse.png
          20 kB
          Hiroto Kagotani
        6. 05-resetcoursestartdate.png
          48 kB
          Hiroto Kagotani
        7. 06-assignmentincourse-2.png
          20 kB
          Hiroto Kagotani
        8. 07-assingmentsettings.png
          96 kB
          Hiroto Kagotani

            Unassigned Unassigned
            kagotani Hiroto Kagotani
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.