I flagged this as an issue. http://code.google.com/p/gdata-issues/issues/detail?id=395
On Sun, Mar 9, 2008 at 8:49 PM, Ray Baxter <[EMAIL PROTECTED]> wrote: > Again, it would be helpful if you were to show us your exact calls to > setStartMin and setStartMax, and the results that you are getting. > > Google's documentation of how the start-max and start-min parameters > work is contradictory. > > If you look at http://code.google.com/apis/calendar/reference.html#Parameters > , you read that start-min is the "Earliest event start time to match," > and start-max is the "Latest event start time to match." These > statements do not reflect the implemented behavior. > > Further down the page, it says something different that agrees with > the actual behavior of the api, "To receive a feed of all events that > overlap with a given time period, set start-min to the beginning of > the period and start-max to the end of the period." > > To be concrete, I have two events on a calendar of mine. One is a > three hour event from 11am to 2pm today as I write, <gd:when > startTime='2008-03-09T11:00:00.000-07:00' > endTime='2008-03-09T14:00:00.000-07:00' /> and the other is an all day > event tomorrow with <gd:when startTime='2008-03-10' > endTime='2008-03-11' />. > > Querying with start-min=2008-03-09T14:00:00-07:00 and > start-max=2008-03-09T17:00:00-07:00 returns no results. > > Querying with start-min=2008-03-09T13:00:00-07:00 and > start-max=2008-03-09T18:00:00-07:00 returns both events I mentioned > above. > > My interpretation is that the 3 hour event starts before start-min, > but ends after start-min so it is returned in accord with the second > statement in the documentation. > > For the all-day event, Google is assuming that the event is an all-day > event in the Universal Time Zone instead of my local time zone. I can > specify the current time zone in the ctz parameter. > A query for > start-min=2008-03-09T14:00:00-07:00&start-max=2008-03-10&ctz=America/Los_Angeles > returns no results. > > Hope that helps, > > Ray > > > > > > On Sun, Mar 9, 2008 at 6:54 PM, Ahmad <[EMAIL PROTECTED]> wrote: > > > > Yes, you are right sir. It worked now after several tries, but when > > specifying the same date (2008-03-09 to 2008-03-09) and specifying > > times also, it seems that all events in this date are returned and the > > times are ignored, if it is right, then I think I have to subtract one > > day from the start date and specify the maximum time (23:59:59) as a > > work around. Please advise. > > > > > > > > On Mar 7, 4:27 am, Ray Baxter <[EMAIL PROTECTED]> wrote: > > > Ahmad wrote: > > > > Great, but I tried querying the calendar using dates and times using > > > > Zend Gdata API and the result is that it ignores the times, I don't > > > > know why > > > > > > The code is there and it looks like it works for times, in fact it only > > > works with times. What does your code look like? How are you calling > > > setStartMin/setStartMax? Do you have an example of an event that is > > > returned, that should not be and the values you passed to setStartMin > > > and setStartMax ? > > > > > > -- > > > > > > Ray > > > > > > > > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
