【发布时间】:2021-12-22 20:21:35
【问题描述】:
我有一个 python 脚本,它将我的一些约会同步到两个不同的谷歌账户,两个账户都有一个谷歌日历,显然设置相同(时区设置也相同),在调用下载时日历上的约会列表但是,根据我要查询的日历,调用返回具有不同日期格式的约会。
使用的库是google开发的(使用的Python版本是3.6)
脚本(这两种情况都在同一台机器上运行)如下:
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', [])
我想是日历配置有问题,但我在设置中没有找到任何相关设置。
【问题讨论】:
-
可能相关:军事时间后缀(ZULU)here
标签: python google-calendar-api