如何设置 google 日历 api 的时区?

How do you set the timezone of the google calendar api?

我正在尝试使用 get 方法访问 google 日历中的事件。 url 是这样的: <a href="https://www.googleapis.com/calendar/v3/calendars/" rel="nofollow">https://www.googleapis.com/calendar/v3/calendars/</a>{日历 ID}/events?singleEvents=true&key={API 键}

我将如何调用 api 并传入时区以使 google 根据传入的时区调整 dates/times?

您可以将名为 timeZone 的参数指定为 url。您可以添加 'GMT+1:00' 或 'UTC+1:00'.

等值

Time zone used in the response. Optional. The default is the time zone of the calendar.

Source: Parameter for GET method.

Try here with API explorer