From ae3e0b1dcb76474f171e4d41549249dcb01916b6 Mon Sep 17 00:00:00 2001 From: Alex Tselegidis Date: Thu, 10 Dec 2020 11:31:59 +0200 Subject: [PATCH] Google Calendar sync must not break when syncing all day events (#945). --- application/controllers/Google.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/application/controllers/Google.php b/application/controllers/Google.php index 1f5f0d9e..c84a4846 100644 --- a/application/controllers/Google.php +++ b/application/controllers/Google.php @@ -182,6 +182,11 @@ class Google extends EA_Controller { continue; } + if ($google_event->getStart()->getDateTime() === $google_event->getEnd()->getDateTime()) + { + continue; // Skip all day events + } + $results = $CI->appointments_model->get_batch(['id_google_calendar' => $google_event->getId()]); if ( ! empty($results))