Hello !

My application should be syncrhonized with events located in a google
calendar. So, when a user start its calendar (in my application), new
events from Google are retreived and a dialog window pops up. In the
dialog the user has to do some operations which will rename the event
and update the new name to the event located in Google Calendar.
The user can change the starttime and the endtime before it is updated
and the event located in Google Calendar will be updated with this new
times, but when this is done the event in Google Calendar is updated
with 2 hours of time difference.

In my application (written in Java) I use the Date class (which hold a
long value) within a Activite class (similar to an Event). When I set
the new times a do something like :
When when = event.getTimes().get(0);
when.setStartTime(new DateTime(activite.getStartDate().getTime()));
when.setEndTime(new DateTime(activite.getEndDate().getTime()));

and at this time if I display the datetime with the toUiString()
function it displays a time which is 2 hours before the time setted.

Is it a conversion issue from Date (standard API) to DateTime (Google
API) ? Strange because the conversion from DateTime to Date works as
expected !

Thanks a lot for your help, and sorry for my english !
--~--~---------~--~----~------------~-------~--~----~
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://groups.google.com/group/google-calendar-help-dataapi?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to