From 3a0d426f7fccb84092fd3541c56b4a86cc233dca Mon Sep 17 00:00:00 2001 From: Parthiv Patel Date: Mon, 9 May 2022 08:34:29 +0000 Subject: [PATCH] [PATCH] Upstream patch - 09052022 --- addons/google_calendar/models/calendar.py | 1 + 1 file changed, 1 insertion(+) diff --git a/addons/google_calendar/models/calendar.py b/addons/google_calendar/models/calendar.py index ca49f79ced..4b26c67148 100644 --- a/addons/google_calendar/models/calendar.py +++ b/addons/google_calendar/models/calendar.py @@ -87,6 +87,7 @@ class Meeting(models.Model): else: start = parse(google_event.start.get('date')) stop = parse(google_event.end.get('date')) - relativedelta(days=1) + stop = max(start, stop) # For the cases that start date and end date were the same values['allday'] = True values['start'] = start values['stop'] = stop