【发布时间】:2014-04-07 02:52:56
【问题描述】:
我们正在添加带有开始时间和结束时间的事件,如下面的 sn-p,
EventDateTime startEventDateTime = new EventDateTime().setDateTime(startDateTime).setTimeZone(timeZone);
EventDateTime endEventDateTime = new EventDateTime().setDateTime(endDateTime).setTimeZone(timeZone);
如果时区是"Asia/Calcutta" 或"GMT +05:30",它会成功添加到谷歌日历中,但我们的一些用户的时区是"IST","PST","CST"。如果我们在 timeZone 变量中给出它,Google 日历会抛出
"Invalid time zone definition for start time."
即使时区像"IST","PST","CST","EST"也可以接受吗?
【问题讨论】:
标签: google-api google-calendar-api google-oauth google-apps gdata-api