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

DST Activates Hours Early: Affects Assignment, Quiz, Calendar, etc.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: 2.3.10, 2.6.2, 2.7.7, 2.8.5
    • Fix Version/s: None
    • Component/s: Libraries
    • Testing Instructions:
      1. Add the attached file userdate_test.php to lib/tests.
      2. Run all the PHPunit tests.
    • Workaround:
      Hide

      Move to sunny Perth (no DST).

      Show
      Move to sunny Perth (no DST).
    • Affected Branches:
      MOODLE_23_STABLE, MOODLE_26_STABLE, MOODLE_27_STABLE, MOODLE_28_STABLE
    • Pull from Repository:

      Description

      We had several students who uploaded an assignment on time, but Moodle had somehow already added one hour for daylight savings time long before the change was supposed to take effect. This caused Moodle to mark the submission as late. For example, an assignment was due at 11:55pm on Saturday, March 8, 2014. The time change was supposed to occur two hours and five minutes later at 2:00am on Sunday, March 9, 2014. The student uploaded the assignment at 11:50pm on March 8th, but Moodle recorded the assignment's last modified date as "Sunday, March 9, 2014, 12:50AM," essentially 55 minutes late. Moodle somehow factored in the additional hour a little over two hours before the time change was supposed to happen.

      We are running Moodle 2.3.7 on a Linux machine. This version of Moodle was not in the list, so I chose the next nearest version.

      I am not sure about steps to recreate the problem.

        Attachments

        1. report_timezone.zip
          8 kB
        2. timezone_check.php
          2 kB
        3. timezone.txt
          154 kB
        4. userdate_test.php
          806 kB

          Issue Links

            Activity

              People

              Assignee:
              jrchamp Jonathan Champ
              Reporter:
              gdharris Gary Harris
              Peer reviewer:
              Mark Nelson Mark Nelson
              Integrator:
              David Monllaó David Monllaó
              Participants:
              Component watchers:
              Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Sara Arjona (@sarjona)
              Votes:
              7 Vote for this issue
              Watchers:
              19 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: