Google Cal API Python:创建一个不考虑TimeZone设置的日历

时间:2011-10-09 11:43:27

标签: python timezone google-api google-calendar-api

当我尝试创建新日历时,我在使用Google API for Google日历时遇到了一些问题。 实际上,不考虑日历的TimeZone,日历是创建的,但TimeZone是默认的。 日历的“选定”选项也是如此。

代码:

time_zone = 'Europe/Paris'
calendar = gdata.calendar.data.CalendarEntry()
calendar.title = atom.data.Title(text='testMaj1')
calendar.timezone = gdata.calendar.data.TimeZoneProperty(value=time_zone)
calendar.hidden = gdata.calendar.data.HiddenProperty(value='false')
calendar.selected = gdata.calendar.data.SelectedProperty(value='true')

new_calendar = client.InsertCalendar(new_calendar=calendar)

我正在寻找时区的不同可能性,我发现(http://code.google.com/intl/fr-FR/apis/adwords/docs/developer/adwords_api_timezones.html)欧洲/巴黎,所以我尝试了它没有成功。 我用另一个时区测试它是一样的。

在创建新日历期间我没有错误。

如果您对此有所了解......:)

感谢的

0 个答案:

没有答案