Thanks!
Alain wrote:
> Hello Mikywan,
>
> The gd:when element has a property named "gCal:displayTimezone" that specify
> the display timezone to used:
>
> [ATOM]
> <gd:when endTime="2011-05-17T15:00:00.000-08:00"
> startTime="2011-05-17T17:00:00.000-08:00">
> <gd:reminder method="alert" minutes="10"/>
> <gCal:displayTimezone end="Europe/Warsaw" start="Europe/Paris"/>
> </gd:when>
> [ATOM]
>
> Unfortunately, the Java client library doesn't support his property. But you
> can add it by using the attached Java class and use it like this:
>
> [CODE]
>
> When eventTimes = new When();
>
> DateTime startTime = DateTime.parseDateTime("2011-05-17T15:00:00-08:00"
> );
>
> DateTime endTime = DateTime.parseDateTime("2011-05-17T17:00:00-08:00");
>
>
> eventTimes.setStartTime(startTime);
>
> eventTimes.setEndTime(endTime);
>
> eventTimes.setExtension(new *DisplayTimezoneProperty*("Europe/Paris",
> "Europe/Warsaw"));
>
> eventEntry.addTime(eventTimes);
> [/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