可接受的Google Calendar API时区列表 [英] List of acceptable Google Calendar api time zones

查看:105
本文介绍了可接受的Google Calendar API时区列表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Google的Calendar API,但遇到了一个问题.设置要插入的事件的dateTime时,需要设置小时偏移量,但是由于DST的原因,它会关闭一个小时.我可以为日历设置一个属性,以按名称设置时区,我认为这可以解决我的问题,因为Google会找出正确的时差.但是,我不知道所有这些人,也找不到一个列出这些人的地方.例如"America/Los_Angeles"或"Europe/Zurich".有人知道我在哪里可以找到他们吗?

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?

推荐答案

我想我已经在该网站上找到了自己想要的列表:

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

http://www.timezoneconverter.com/

这就是我最终需要的:

美国/纽约
美国/芝加哥
美国/丹佛
America/Los_Angeles

Here is what I ended up needing:

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

具体在此页面上

这篇关于可接受的Google Calendar API时区列表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆