Google Cal API Python:创建不考虑时区设置的日历
当我尝试创建一个新日历时,使用Google日历的Google API有一个小问题。 实际上,不考虑日历的时区,日历是创建的,但默认情况下时区是创建的。 对于日历的选定选项,情况也是如此 守则:Google Cal API Python:创建不考虑时区设置的日历,python,timezone,google-api,google-calendar-api,Python,Timezone,Google Api,Google Calendar Api,当我尝试创建一个新日历时,使用Google日历的Google API有一个小问题。 实际上,不考虑日历的时区,日历是创建的,但默认情况下时区是创建的。 对于日历的选定选项,情况也是如此 守则: time_zone = 'Europe/Paris' calendar = gdata.calendar.data.CalendarEntry() calendar.title = atom.data.Title(text='testMaj1') calendar.timezone = gdata.cal
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)
我一直在寻找时区的不同可能性,我发现了()欧洲/巴黎,所以我尝试了,但没有成功。
我用另一个时区测试,结果是一样的
我在创建新日历的过程中没有错误
如果你对此有一些想法……:)
谢谢我也有同样的问题。底线是谷歌API是垃圾。用不同的选择浪费了很多天。遵循他们的API文档,但结果仍然相同。