I have a python script which syncs some of my appointments to two different google accounts, both accounts have a google calendar which is apparently set identically (the time zone set is also the same), at the time of the call to download the list of the appointments on the calendar however, the call returns the appointments with a different date format depending on the calendar I am going to query.
Example of the response returned from the first calendar:
Example of the response returned from the second calendar:
The library used is the one developed by google (Python version used is 3.6)
The script (which runs in both cases on the same machine) is the following:
params = {
'calendarId': self._calendar.id,
'timeMin': from_datetime,
'timeMax': to_datetime,
'maxResults': MAX_APP_DOWNLOADS,
'singleEvents': True,
'orderBy': 'startTime',
'showDeleted': 'true'
}
events_result = self._service.events().list(**params).execute()
events = events_result.get('items', [])
I suppose it is some problem regarding the calendar configuration, but I have not found any settings about it in the settings.