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

Calendar import from o365 does not respect Timezone data

    XMLWordPrintable

Details

    • MOODLE_400_STABLE
    • MOODLE_400_STABLE
    • MDL-75627_master_v2
    • Hide

      Requirements:

      • An Office 365 account.

      In Outlook / Office 365:

      1. Create a calendar in office 365 using a timezone with a negative offset (such as America/New York)
      2. Create a whole day event in the outlook calendar
      3. From the Calendar page, go to Settings  --> View all Outlook settings and access to Calendar -> Shared calendars.
      4. Publish the calendar when the event was created and annotate the ICS URL.

       

      In Moodle:

      1. In Moodle set the server timezone to America/New York (or match the timezone used in step 1 above)
      2. Make sure that the user logging into Moodle has their profile set to the same time zone as the server
      3. Navigate into Any course.
      4. Import the calendar into a Moodle course as a course event (Use the URL and subscribe to office 365 calendar link)
      5. View the calendar in Moodle as the user and compare to the Office 365 calendar
      6. Verify that both calendars match.
      Show
      Requirements: An Office 365 account. In Outlook / Office 365: Create a calendar in office 365 using a timezone with a negative offset (such as America/New York) Create a whole day event in the outlook calendar From the Calendar page, go to Settings  --> View all Outlook settings and access to Calendar -> Shared calendars. Publish the calendar when the event was created and annotate the ICS URL.   In Moodle: In Moodle set the server timezone to America/New York (or match the timezone used in step 1 above) Make sure that the user logging into Moodle has their profile set to the same time zone as the server Navigate into Any course. Import the calendar into a Moodle course as a course event (Use the URL and subscribe to office 365 calendar link) View the calendar in Moodle as the user and compare to the Office 365 calendar Verify that both calendars match.

    Description

      The calendar import from office 365 incorrectly imports whole day events by applying the Timezone offset to an ICS file that already contains a time zone offset.

      Steps to reproduce:

      In Outlook / Office 365:

      1. Create a calendar in office 365 using a timezone with a negative offset (such as America/New York)
      2. Create a whole day event in the outlook calendar

      In Moodle:

      1. In Moodle set the server timezone to America/New York (or match the timezone used in step 1 above)
      2. Make sure that the user logging into Moodle has their profile set to the same time zone as the server
      3. Navigate into Any course.
      4. Import the calendar into a Moodle course as a course event (Use the URL and subscribe to office 365 calendar link)
      5. View the calendar in Moodle as the user and compare to the Office 365 calendar

      Expected result:
      the calendars should match

      Actual result:
      The events are displayed the day before in the evening. Moodle applies the timezone offset incorrectly so for a timezone of New York, the event may be listed at either 7PM or 8PM the night before depending on DST

       

      The only way to get the events to display correctly is for the user to view them using UTC (which will skew all of their other dates)

      Attachments

        Activity

          People

            sbourget Stephen Bourget
            sbourget Stephen Bourget
            Stevani Andolo Stevani Andolo
            Sara Arjona (@sarjona) Sara Arjona (@sarjona)
            John Edward Pedregosa John Edward Pedregosa
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 3 hours, 21 minutes
                3h 21m

                Clockify

                  Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.