Event_New API timezone - does it accept Olson tz values?

本小妞迷上赌 提交于 2019-12-08 05:04:39

问题


Does anyone know if this API will accept Olson tz labels like "America/Los_Angeles" for the timezone field?

I'm using this API: http://developer.eventbrite.com/doc/events/event_new/

Where it says for timezone:

The event time zone in relation to GMT (e.g., “GMT+01″, “GMT+02″, “GMT-01″).

I know from other community discussion that this will also accept values like "US/Pacific".

I also took a look at the select dropdown in the manual event entry form, and the values appear to be Olson tz labels. I just want to know if anyone can confirm this. I'll confirm it myself once I get the event post working through the API, but would love to save time by knowing ahead of time.

Thanks!


回答1:


Yes, Olson tz labels are allowed on input, and are now the default output format for that field.

The previous timezone input values ('GMT+8', 'US/Pacific', 'PT', etc.) are still allowed, and are now automatically remapped to their Olson-compatible equivalent ('America/Los Angeles') on input.



来源:https://stackoverflow.com/questions/12180293/event-new-api-timezone-does-it-accept-olson-tz-values

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