Hello Paul,

You should be able to set the start and end times in ISO 8601 format as 
strings:

*    start_time = "2011-05-13T15:00:00.000-00:00"
    end_time = "2011-05-13T19:00:00.000+01:00"*

To modify the displayTimezone property, you would have add a new class to 
the file 
gdata/calendar/data.py<http://code.google.com/p/gdata-python-client/source/browse/src/gdata/calendar/data.py>and
 modify the 
gdata.calendar.data.When<http://code.google.com/p/gdata-python-client/source/browse/src/gdata/calendar/data.py#231>class
 to add the new property (changes are in bold):

[CODE]
*class DisplayTimezoneProperty(atom.core.XmlElement):
**  _qname = GCAL_TEMPLATE % 'displayTimezone'
**  start = **'start' end = 'end' * class When(gdata.data.When):
  """Extends the gd:when element to add reminders"""
reminder = [gdata.data.Reminder]   *display_timezone **= TimezoneProperty*
[/CODE]

Please note that this is using the 
client<http://code.google.com/p/gdata-python-client/source/browse/src/gdata/calendar/client.py>
/data<http://code.google.com/p/gdata-python-client/source/browse/src/gdata/calendar/data.py>architecture
 as described in the Python 
developers 
guide<http://code.google.com/apis/calendar/data/2.0/developers_guide_python.html>
.

Using this, you will be able to set the display timezone as follow:

[CODE]
*    start_time = "2011-05-13T15:00:00.000-00:00"
    end_time = "2011-05-13T19:00:00.000+01:00"*
*    display_timezone = gdata.calendar.data.DisplayTimezoneProperty(start='*
*Europe/London**', end='**Europe/Oslo'**)*
*    event.when.append(gdata.calendar.data.When(start=start_time, 
end=end_time, display_timezone=display_timezone)*
[/CODE]

I hope this helped!
Best,
Alain


-- 
You received this message because you are subscribed to the Google
Groups "Google Calendar Data API" group.
To post to this group, send email to
[email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://code.google.com/apis/calendar/community/forum.html

Reply via email to