From f51df3cba17931d49263780574883ceb8bfb7965 Mon Sep 17 00:00:00 2001
From: angelo paglialonga <info@angelopaglialonga.com>
Date: Thu, 8 Jul 2021 14:09:23 +0200
Subject: [PATCH] fix for #1614

---
 .../modules/Google/modules/Google/connectors/Calendar.php       | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pkg/vtiger/modules/Google/modules/Google/connectors/Calendar.php b/pkg/vtiger/modules/Google/modules/Google/connectors/Calendar.php
index eb59097ae..3e3e767d7 100644
--- a/pkg/vtiger/modules/Google/modules/Google/connectors/Calendar.php
+++ b/pkg/vtiger/modules/Google/modules/Google/connectors/Calendar.php
@@ -152,7 +152,7 @@ Class Google_Calendar_Connector extends WSAPP_TargetConnector {
             $query['updatedMin'] = $this->googleFormat(Google_Utils_Helper::getSyncTime('Calendar', $user));
             //shows deleted by default
         }
-        
+        $query['updatedMin'] = date("Y-m-d", strtotime("first day of previous month"));
         $calendarId = Google_Utils_Helper::getSelectedCalendarForUser($user);
         if(!isset($this->calendars)) {
             $this->calendars = $this->pullCalendars(true);
-- 
GitLab