Hi,
I created a web application using calendar data API to create events
in google calendar. The application is behaving weird depending on
where it is hosted.
Our development servers are in EST time zone.
Our production servers are in PST time zone.
Our calendars are in EST time zone.
In the development environment if I set an event to start at 9AM and
end by 10 AM, it is creating events fine.
But in the production environment, the same event is getting created
to start at 12 PM and end by 1 PM.
I am using EventEntry class to create the events in google calendar.
After noticing this behaviour, I modified the code to add the
following lines:
'Set timezone
Dim lobjTimeZone As New TimeZone
lobjTimeZone.Value = "US/Eastern"
objEventEntry.ExtensionElements.Add(lobjTimeZone)
'Setting when to event.
dtEventStartDt = "3/24/2009 9:00 am"
dtEventEndDt= "3/24/2009 10:00 am"
objEventEntry.ExtensionElements.Add(New [When]
(dtEventStartDt , dtEventEndDt, false))
I am not sure if this is a right notation but even then I see the same
behaviour.
Is it somehow taking the time zone the server is in and converting the
time to the equivalent time zone?
Is there anyway to stop that behavour of converting the time and
create the events to the times I pass to the event?
-N
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---