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

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

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • 2.3.10, 2.6.2, 2.7.7, 2.8.5
    • None
    • Libraries
    • MOODLE_23_STABLE, MOODLE_26_STABLE, MOODLE_27_STABLE, MOODLE_28_STABLE
    • Hide

      Move to sunny Perth (no DST).

      Show
      Move to sunny Perth (no DST).
      1. Add the attached file userdate_test.php to lib/tests.
      2. Run all the PHPunit tests.

    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. userdate_test.php
          806 kB
        2. timezone.txt
          154 kB
        3. timezone_check.php
          2 kB
        4. report_timezone.zip
          8 kB

        Issue Links

          Activity

            People

              jrchamp Jonathan Champ
              gdharris Gary Harris
              Mark Nelson Mark Nelson
              David Monllaó David Monllaó
              David Woloszyn, Huong Nguyen, Jake Dallimore, Meirza, Michael Hawkins, Raquel Ortega, Safat Shahin, Stevani Andolo
              Votes:
              7 Vote for this issue
              Watchers:
              19 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: