From 8045806a6c4c99d1b8a635fcdf2a7bd9c8f688bc Mon Sep 17 00:00:00 2001 From: NicoDucou Date: Mon, 4 Jan 2021 23:47:30 +0100 Subject: [PATCH] [agenda] Fix repeated event date timezone error on repeated event - refs BT#18150 --- main/inc/lib/agenda.lib.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/main/inc/lib/agenda.lib.php b/main/inc/lib/agenda.lib.php index 85d4110111..9b9aad49f3 100644 --- a/main/inc/lib/agenda.lib.php +++ b/main/inc/lib/agenda.lib.php @@ -628,8 +628,12 @@ class Agenda } foreach ($generatedDates as $dateInfo) { - $start = api_get_local_time($dateInfo['start']); - $end = api_get_local_time($dateInfo['end']); +// $start = api_get_local_time($dateInfo['start']); +// $end = api_get_local_time($dateInfo['end']); +// On line 529 in function generateDatesByType there is a @todo remove comment code +// just before the part updating the date in local time so keep both synchronised + $start = $dateInfo['start']; + $end = $dateInfo['end']; $this->addEvent( $start, $end,