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

Pop-up calendar shows wrong days of week for month after DST starts

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.2.7, 2.5.8, 2.6.5, 2.7.2
    • Fix Version/s: 2.6.6, 2.7.3
    • Component/s: Forms Library, JavaScript
    • Labels:
    • Environment:
      Safari (at least OSX + iOS)
    • Testing Instructions:
      Hide

      MUST be tested on Moodle 2.7 or earlier using Safari (OSX or iOS) as it's the only affected browser (Safari on Windows untested due to lack of support)

      • This is a client-side issue, so set your client timezone to Auckland (New Zealand) for ease of testing. You do NOT need to change the date/time to anything specific - just the timezone.
      • Add/edit an assignment
      • Enable the due date
      • Open the date selector (Calendar widget)
      • Navigate to October
      • Confirm that the days of week are correct (October 1 2014 is a Wednesday)
      Show
      MUST be tested on Moodle 2.7 or earlier using Safari (OSX or iOS) as it's the only affected browser (Safari on Windows untested due to lack of support) This is a client-side issue, so set your client timezone to Auckland (New Zealand) for ease of testing. You do NOT need to change the date/time to anything specific - just the timezone. Add/edit an assignment Enable the due date Open the date selector (Calendar widget) Navigate to October Confirm that the days of week are correct (October 1 2014 is a Wednesday)
    • Workaround:
      Hide

      Use a browser other than Safari (may not be possible to work around this issue on iOS).

      Show
      Use a browser other than Safari (may not be possible to work around this issue on iOS).
    • Affected Branches:
      MOODLE_22_STABLE, MOODLE_25_STABLE, MOODLE_26_STABLE, MOODLE_27_STABLE
    • Fixed Branches:
      MOODLE_26_STABLE, MOODLE_27_STABLE
    • Pull from Repository:
    • Pull Master Branch:

      Description

      The calendar popup on date pickers shows the incorrect day of the week in some situations. This happens when Daylight Savings Time kicks in on the last Sunday of the month - the following month will be affected, as Safari will return 11pm on the Saturday instead of midnight Sunday when the YUI2 Calendar widget attempts to calculate the first day to display.

      This bug is shown on several PCS with the same user logged in, while in other PCs the calendar is correct with the same user logged in.

      Moreover, I checked the previous and later months and the starting dates of these months are shown correctly (month of March and May)in these PCs.

      Attached are screen shots of wrong April calendar and correct calendar.

      Thank you.
      Anis

        Attachments

          Activity

            People

            • Votes:
              1 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Fix Release Date:
                10/Nov/14