Google应用程序用户主日历API v3时区更新不工作



我正在使用Google API资源管理器设置Google Apps用户的主要日历时区-尝试了更新("Services>calendar API v3>calendar.calendar.update")和修补("Services>calendar API v3>calendar.alendar.patch"),但时区未更改。

日历应用程序中未更新时区,get("Services>Calendar API v3>Calendar.Calendar.get")返回不反映更新或补丁的旧值。。。

这是日历API v3中的一个bug,还是我遗漏了什么?

日历API v3请求和响应示例:

Request:
PATCH https://www.googleapis.com/calendar/v3/calendars/user152%40bracnaagencija.com?key={YOUR_API_KEY}
Content-Type:  application/json
Authorization:  Bearer ya29.1.AADtN_UPBwkU29qf5Tg1rEOZAtBdjv0OArg_RcAaUGNd4K43Pnonf6vK5JcJqfT6ht2bh31n793sry9AIs3-_xk
X-JavaScript-User-Agent:  Google APIs Explorer
{
"timeZone": "Europe/Zagreb"
}
Response:
200 OK
- Show headers -
{
"kind": "calendar#calendar",
"etag": ""XxbwS1MD0Y8jfGZwMQdPS4xI8-w/G_gC5jDwlI70wsfMFOhGzUPev2U"",
"id": "user152@bracnaagencija.com",
"summary": "Unknown Unknown",
"timeZone": "Europe/Zagreb"
}
Request:
GET https://www.googleapis.com/calendar/v3/calendars/user152%40bracnaagencija.com?key={YOUR_API_KEY}
Authorization:  Bearer ya29.1.AADtN_UZRmbrmkJvNRyA9739wcpsKPRObitSAnfMeh1WcEan0Z6UML3ryFZaoy0OJELLYu6mgg
X-JavaScript-User-Agent:  Google APIs Explorer
Response:
200 OK
- Show headers -
{
"kind": "calendar#calendar",
"etag": ""XxbwS1MD0Y8jfGZwMQdPS4xI8-w/ykVLEmnFygm61gmsUBUa0zgsq0E"",
"id": "user152@bracnaagencija.com",
"summary": "user152@bracnaagencija.com",
"timeZone": "America/New_York"
}

Europe/Zagreb是有效的IANA/Olson标识符,但它只是指向Europe/Belgrade的链接。它共享完全相同的数据。(有关详细信息,请参阅此列表或原始源数据。)

谷歌日历完全有可能(尽管我不能100%确定)不支持时区列表中的链接。

试试Europe/Belgrade,看看它是否有效。

最新更新