Personally, I can work around this bug but I thought it would be good to have a specific posting of it.
date_repeat_api seems to be functioning fine for repeating nodes created with Drupal. Linked/imported iCal repeating events, on the other hand, are not. var_dump ($rrule); returns NULL for iCal and this for a repeating Drupal node:
array(5) { ["DATA"]=> string(53) "FREQ=WEEKLY;INTERVAL=1;UNTIL=20090114T060000Z;WKST=SU" ["FREQ"]=> string(6) "WEEKLY" ["INTERVAL"]=> string(1) "1" ["UNTIL"]=> array(3) { ["datetime"]=> string(19) "2009-01-14 06:00:00" ["all_day"]=> bool(false) ["tz"]=> string(3) "UTC" } ["WKST"]=> string(2) "SU" }.
DTSTART, DTEND & DURATION all seem to be parsing correctly on these repeated events using iCal. Which leads me to think that date_ical_parse_rrule is where RRULE variables are not being parsed properly.
I am currently using Drupal 5.12 with Calendar 5.x-2.x-dev (2008-Dec-05) and Date 5.x-2.x-dev (2008-Dec-08) on our test server using PHP4 and Calendar 5.x-2.5 and Date 5.x-2.x-dev (2008-Dec-08) on our public server using PHP5. I am getting the same issue on both.
Comments
Comment #1
karens commentedSorry, I can't follow this at all. Can you give me something specific I can try to replicate what you're seeing? And wrap your code with <code> tags so I can see it better. I think you're trying to give me an example, but I have no idea what you're trying to say I should do with it.
Comment #2
cybermache commentedHappy New Year Karen,
Sorry if my issue explanation was confusing.
The following code is what is published for a repeating event tester iCalendar.
This is happening in version 5 and I know that version 6 has priority. I have just begun a trial update to drupal 6.x but have not yet been able to link published calendars. So, I am unable to confirm whether this is an issue for version 6 as well.
With the parsing fix that happened recently for the DURATION values, I was hoping that maybe this RRULE parsing issue could be solved by a similar solution. This is a continuing problem looking back at other posts. Where only the first day of a repetitive event shows up and none of the following events.
I tried a var_dump for $rrule and only received a repeating NULL value. What I'm not sure about is if $rrule is the element that holds the parsed RRULE data from iCal and how to discern whether the parsed data is not being placed in $rrule or just not being parsed correctly.
Does that make more sense? I thought by giving the code that iCal is publishing, the fact that DTSTART and DURATION appear (the first date of the repeating event) and that var_dump of $rrule displays NULL, you would be able to point me in the right direction or that it would assist you in solving this bug.
Thanks for your response.
Comment #3
cybermache commentedI'm going to go ahead and close this issue Karen. It's been a year and I'm working in 6.x only now. Plus I have my hands full with other things that I have not gotten around to testing rrules yet. With version 7 just around the corner if this issue still exists its probably best to create a new ticket for it.
Happy Holidays