From 644bb3d674a88483f5a21bfa859afebb77bc571b Mon Sep 17 00:00:00 2001 From: Denis Ledoux Date: Fri, 18 Dec 2015 14:30:07 +0100 Subject: [PATCH] [FIX] google_calendar: default timezone If no timezone was defined for the user, the timezone sent to Google for the events syncrhonization was set as `False` instead of the right default value `UTC` opw-660171 --- addons/google_calendar/google_calendar.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/google_calendar/google_calendar.py b/addons/google_calendar/google_calendar.py index 340191e8cbf..e9debc8f1bb 100644 --- a/addons/google_calendar/google_calendar.py +++ b/addons/google_calendar/google_calendar.py @@ -236,12 +236,12 @@ class google_calendar(osv.AbstractModel): "start": { type: start_date, vstype: None, - 'timeZone': context.get('tz', 'UTC'), + 'timeZone': context.get('tz') or 'UTC', }, "end": { type: final_date, vstype: None, - 'timeZone': context.get('tz', 'UTC'), + 'timeZone': context.get('tz') or 'UTC', }, "attendees": attendee_list, "reminders": {