我使用Google API资源管理器设置Google Apps用户主日历时区 - 尝试更新("服务> Calendar API v3> calendar.calendars.update")和补丁(& #34;服务> Calendar API v3> calendar.calendars.patch")但时区不会更改。
时区未在日历应用程序中更新,并且获得("服务> Calendar API v3> calendar.calendars.get")会返回不反映更新或修补程序的旧值...
它是Calendar API v3中的错误还是我错过了什么?
示例Calendar 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"
}
答案 0 :(得分:0)
Europe/Zagreb
是有效的IANA / Olson标识符,但它只是指向Europe/Belgrade
的链接。它共享完全相同的数据。 (有关详细信息,请参阅this list或the original source data。)
完全有可能(尽管我不是100%肯定)Google日历不支持其时区列表中的链接。
尝试Europe/Belgrade
,看看是否有效。