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

Course reset date offset issue

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Duplicate
    • Icon: Minor Minor
    • None
    • 4.4.1
    • Course
    • None
    • MOODLE_404_STABLE

      short:

      when reseting a course, the quiz and assignment activities start dates are changed, but the calculation adds the 9 hours to the expected date.

      steps to reproduce.

      Check previous quiz settings.

      Check previous course settings. (course/edit.php?id=40)

      reset the course (course/reset.php?id=40)

      select default:

      reset dates of course as per:

      select reset/continue.

      Check dates of exam.

      you can see the date of the quiz is now 6pm (9 hours after the course start date). this is even when the start time of the course and quiz were the same before.

      i would guess that this is something to do the default timezone of the server (Australia/Hobart)

      i have reported quizzes, but the same issue also occurs with assignments.  Enrolment methods are not updated at all.

      What i expect to happen

      the quiz dates are set to the relative offset of the old start time of the course and the previous quiz start time. relative to the new course start time.  the quiz end date would be the relative offset between the old course start date, the new course start date and the previous exam start time.

      newStartQuiz = (new course start date - old course start date) + oldStartQuiz

      newEndQuiz =(new course date - old course start date) + old End Quiz)

      if the new quiz start date was after the new course end date, a warning should be displayed to users to inform them the quizzes start after the course ends.

      This issue is reported for 4.4.1, but we have noticed this feature for many previous versions.

        1. image-2024-06-17-09-54-31-070.png
          9 kB
          Peter Gee
        2. image-2024-06-17-09-54-36-987.png
          15 kB
          Peter Gee
        3. image-2024-06-17-09-54-43-754.png
          26 kB
          Peter Gee
        4. image-2024-06-17-09-54-48-989.png
          8 kB
          Peter Gee

            Unassigned Unassigned
            pgee Peter Gee
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

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