I'm having a problem with <gd:recurrence>, all day events, the RFC2445
text that Google Calendar sends, specifically the UNTIL line inside
the RRULE, and timezones.

When I fetch an event that lasts all day, and repeats every day for
one week, I get a <gd:recurrence> containing:
DTSTART;VALUE=DATE:20070904
DTEND;VALUE=DATE:20070905
RRULE:FREQ=DAILY;UNTIL=20070910T070000Z;WKST=SU
...

Note that the start has no time, just a day, the end has no time, and
the UNTIL has a very peculiar time. The UNTIL has a 'Z' date, meaning,
it should be interpreted in Universal time, but it carries that
T070000, which is the negative of the time zone offset.

Note that the interval from start to end is open (i.e., the start is
included but the end is not)

Note that the interval from start to until is closed (i.e., the start
is included and the until is also included)

Note that time on the UNTIL is the (0 - the timezone offset in effect
on the end date)  I'm writing this in PDT, ( -7:00) When I created an
event that repeats monthly, ending in standard time, I got an
UNTIL=20080410T080000Z, consistent with PST ( -8:00) .

Note that this a problem only for reading. If I send Google a
recurrence with:

UNTIL=20070910;

it takes it just fine.

Note that this is a problem only for all day events. for hourly
events, all of start, end, and until specify hours.

The problem is: for time zones with positive offsets, won't Google,
generate UNTIL days that are smaller than the actual end date:
UNTIL=20070909T210000Z

The only way I can convert this to 20070910 is if I know the offset
from universal time in effect when the event ends. Luckily, the
<gd:recurrence> carries the timezone rule, so I can parse it and
interpret it, to discover how to correct the bad UNTIL date.

But, that's a substantial chunk of extra code. Has someone already
written it, that I can use?

Where is this behavior of Google Calendar documented?

Have you hit this problem? How do you handle it?

-- David Phillip Oster


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