-
Bug
-
Resolution: Fixed
-
Minor
-
2.6.3, 2.7.1
-
MOODLE_26_STABLE, MOODLE_27_STABLE
-
MOODLE_27_STABLE
-
MDL-46084-master -
If the timezone for a site is set to (for example) UTC and you add an All Day event to Google Calendar, this correctly shows in moodle as 00:00 -> 00:00, thus spanning over one day.
However, if you then change the timezone to Europe/London (for example), the All Day event gets moved to 01:00->01:00, thus spanning over two days.
This is correct for normal timed events, you'd expect this to happen. But not for all day events. All day events should not have their time changed. All day = All day, regardless of the timezone.
Steps to reproduce:
- Ensure timezone on Moodle is set to UTC
- Ensure Google Calendar is sync'd with Moodle Calendar & Google Timezone is GMT (London).
- Create an all-day calendar event in Google
- Create a timed calendar event in Google
- Ensure all-day calendar event correctly shows under one day in Moodle, between 00:00 and 00:00.
- Ensure timed calendar event displays the time set in Google, minus one hour (due to timezone)
- Change timezone from UTC to Europe/London
- Timed calendar event in Moodle should now read the same time as Google calendar.
- All-day event in Moodle now reads 01:00 -> 01:00, spanning over two days and not one.
Need more testing done to see if Google Calendar is needed to replicate