List of acceptable Google Calendar api time zones

♀尐吖头ヾ 提交于 2019-12-21 07:58:50

问题


I'm working with Google's Calendar API, and I'm running into a bit of an issue. When I set the dateTime of an event I insert, I'm required to set the hour offset, but because o DST, it's off an hour. There is a property I can set for the calendar to set the timezone by name, which I would think would fix my problem, because Google would figure out the correct hour offset. However I do not know all of them, nor can I find a place that lists them. For example "America/Los_Angeles" or "Europe/Zurich". Anybody know where I can find them?


回答1:


I think I have found the list that I was looking for on this website:

http://www.timezoneconverter.com/

Here is what I ended up needing:

America/New_York
America/Chicago
America/Denver
America/Los_Angeles

Specifically it was on this page



来源:https://stackoverflow.com/questions/22526635/list-of-acceptable-google-calendar-api-time-zones

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!