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

Mini Calendar Missing "Last Hour of DST Month" Events

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Duplicate
    • Affects Version/s: 2.6.6, 2.8.1, 2.9
    • Fix Version/s: None
    • Component/s: Calendar
    • Labels:
    • Testing Instructions:
      Hide

      Go to Site administration > Location > Update timezones and do a timezone update.
      Go to Site administration > Location > Location settings and set Default timezone to America/New_York.
      Create assignment with end time set to November 30, 23:55. (or the last day of the current/any month)
      Add Calendar block to course.
      View November (or the month you've created the on Monthly Calendar block (switch the month if needed, don't click on the month name or it will take you to a different page).
      It should show up there.

      Show
      Go to Site administration > Location > Update timezones and do a timezone update. Go to Site administration > Location > Location settings and set Default timezone to America/New_York. Create assignment with end time set to November 30, 23:55. (or the last day of the current/any month) Add Calendar block to course. View November (or the month you've created the on Monthly Calendar block (switch the month if needed, don't click on the month name or it will take you to a different page). It should show up there.
    • Workaround:
      Hide

      Reschedule the event to not take place during the last hour of the last day of the month in which DST ends.

      Show
      Reschedule the event to not take place during the last hour of the last day of the month in which DST ends.
    • Difficulty:
      Easy
    • Affected Branches:
      MOODLE_26_STABLE, MOODLE_28_STABLE, MOODLE_29_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      patch-1

      Description

      An event scheduled for the last hour of November on a server with United States DST rules will not show up in the mini-calendar. The code assumes that all of the days in the month have the same number of seconds, but the "fall back" day has an extra hour, which means that events during the last hour of the month are not returned in the dataset.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                3 Vote for this issue
                Watchers:
                10 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: