I can insert events correctly using CalendarService.Insert(…).
But when I try to edit the event:
CalendarService Service = new CalendarService("app");
EventQuery Event = new EventQuery("app");
Event.Uri = new Uri(string.Format("url"));
EventEntry Entry = (EventEntry)((EventFeed)Service.Query
(Event)).Entries[0];
…
Entry.Update();
That's ok except that when I read Entry.Times[0].StartTime and
Entry.Times[0].EndTime they are 1 hour late, if I open the calendar on
the web, StartTime and EndTime are correct, different from what I've
got on the EventEntry object. If I change StartTime or EndTime in the
object and then update, they would show 1 hour forward on the web.
In the object Entry.Times[0] the method IsDaylightSavingTime() returns
false. And the program is running on a system which is currently in a
time zone with "day light saving". But the time-zone calendar
configuration on the web is the same as the system.
Isn't Google Calendar aware of the day light saving in this particular
time-zone? Will it ever be? When the "day light saving" finishes will
I have to rewrite my code?
Thanks, sorry for any mistake. English is not my first language.
Herzog.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---