-
Bug
-
Resolution: Fixed
-
Minor
-
4.2.5, 4.3.1
-
MOODLE_402_STABLE, MOODLE_403_STABLE
-
MOODLE_402_STABLE, MOODLE_403_STABLE
-
MDL-80692-403 -
Bitnami/moodle 4.3.1
Reproducing error:
1. Default server timezone - Europe/London.
2. User timezone - Europe/Kyiv.
3. Click on the calendar cell January 3.
4. In the popup January 2.
Quick fix:
In the file
moodle/calendar/classes/external/day_exporter.php
|
on line 169 change
new \DateTimeImmutable(); |
to
new \DateTimeImmutable(timezone: new \DateTimeZone(\core_date::get_user_timezone())); |