You might search through the archives for some previous posts on this subject.

The problem is that the notion of all-day events means two distinct
things and Google can't know which one you mean:

1) The Fourth of July is an all-day event the runs from
2009-07-04T00:00:00 to 2009-07-05T00:00:00 in every time zone of the
world.

2) The 24 hours of the Fourth in New York City runs from
2009-07-04T00:00:00-05:00:00 to 2009-07-05T00:00:00-05:00, which is
different in every time zone.

The mixing of conventions leads to the results that you are seeing.

Ray

On Tue, Jan 27, 2009 at 2:28 PM, wpijeff <[email protected]> wrote:
>
> I am trying to use start-min and start-max to get an XML feed of all
> entries that fall on this calendar day, localtime.
>
> start-min=YYYY-MM-DDT00:00:00
> start-max=YYYY-MM-DDT23:59:00
>
> This doesn't work at all, since start-min and start-max assume UTC. So
> I added a timezone offset:
>
> start-min=YYYY-MM-DDT00:00:00-05:00
> start-max=YYYY-MM-DDT23:59:00-05:00
>
> This worked, getting me only events that overlap into today. Except it
> ALSO got me an all-day event for tomorrow. Further testing revealed
> that the only way to make it NOT get the all-day event from tomorrow,
> is to change the start-max to be 17:00 (-5 from 23:59). That will drop
> the erroneous all-day event off the list, but it will also drop off
> any events that happen between 17:00 and 23:59.
>
> Can anyone else reproduce this bug? Here are the events I used to
> test:
> Event 1: All-Day 1-27-2009
> Event 2: All-Day 1-28-2009
> Event 3: 3pm-4pm 1-27-2009
> Event 4: 11:50pm-11:55pm 1-27-2009
> Event 5: 12:05am->1:05am 1-27-2009
>
> The request URL: start-min=2009-01-27T00:00:00-05:00&start-
> max=2009-01-27T24:59:00
>
> Expected results: seeing event 1, 3, 4, and 5, but NOT event 2.
>
> What I see: all 5 events
>
> Thanks!
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
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