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

Moodle 3.4 Calendar Displays Wrong Day of Week if setting for the first day of the week is not Monday

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 3.4, 3.4 regressions
    • Fix Version/s: 3.4.1
    • Component/s: Calendar
    • Labels:
    • Testing Instructions:
      Hide

      Using Moodle 3.4:

      1. Go to "Site administration > Appearance > Calendar" and set "Start of week" to Sunday.
      2. Go to your calendar and confirm if days are listed correctly under weekday columns
      Show
      Using Moodle 3.4: Go to "Site administration > Appearance > Calendar" and set "Start of week" to Sunday. Go to your calendar and confirm if days are listed correctly under weekday columns
    • Workaround:
      Hide

      Set the "first day of week" to Monday in calendar settings

      Show
      Set the "first day of week" to Monday in calendar settings
    • Affected Branches:
      MOODLE_34_STABLE
    • Fixed Branches:
      MOODLE_34_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-60823-master

      Description

      After upgrading to Moodle 3.4, the calendar displays dates under the wrong day of the week. At time of writing, the date is Thursday, 16th November 2017, but the new calendar shows it as Wednesday 16th November. The "Wednesday" column lists 2, 9, 16, 23, 30, which should all be under "Thursday" (and yes, I double-checked against Google Calendar ).

      The same error appears in the "Monthly View" calendars column to the right, although mousing over today's date displays a tooltip correctly reading "Today Thursday 16 November". Five-day, weekday, courses display as running from Sunday - Thursday rather than Monday - Friday.

      Server is running Centos 7.2, PHP 7.1.11, MariaDB 5.5.56, Moodle 3.4; timezone is Sydney, GMT+10, which is currently observing daylight saving time, AEDT, which is GMT+11.

      https://moodle.org/mod/forum/discuss.php?d=361527

        Attachments

        1. events.png
          events.png
          5 kB
        2. MoodleCalendar.jpg
          MoodleCalendar.jpg
          72 kB
        3. MoodleQACapture.JPG
          MoodleQACapture.JPG
          32 kB
        4. WorkAroundCapture.JPG
          WorkAroundCapture.JPG
          70 kB

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved:
                Fix Release Date:
                15/Jan/18