Solution
------------

Yes, Timezone affect the way the events are retrieved. I modified the
code as following by adding -06:00 to reflect the timezone

myQuery.setMinimumStartTime(DateTime.parseDateTime(df.format(date.getTime())
+ "T00:00:00-06:00"));
myQuery.setMaximumStartTime(DateTime.parseDateTime(df.format(date.getTime())
+ "T23:59:59-06:00"));

and it seems to work fine. Another thing that still concerns me is
that while creating those events I didn't care about the timezone and
still it was created properly but why it didn't work when retrieving
the events.

Thanks,
-SaM

On Jun 10, 11:38 am, sam_thrust <[EMAIL PROTECTED]> wrote:
> Hi folks,
>
> I'm using the following like of code to get the events for a
> particulate "date". But the strange thing is I'm not able to receive
> the events after 7:00PM. Has it got anything to do with timezone? My
> timezone is CST(Central Time).
>
>             CalendarQuery myQuery = new CalendarQuery(feedUrl);
>
> myQuery.setMinimumStartTime(DateTime.parseDateTime(df.format(date.getTime())
> + "T00:00:00"));
>
> myQuery.setMaximumStartTime(DateTime.parseDateTime(df.format(date.getTime())
> + "T23:59:59"));
>
> Both desktop computer and the Google Calendar are set to CST timezone.
>
> Thanks in advance.
--~--~---------~--~----~------------~-------~--~----~
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