There are two elements in the "RRULE" line(s) in the iCal export template which make the RRULE lines un-parseable by iCal. The first issue is part of the Date module so I filed it here: http://drupal.org/node/424044
The second issue is the RRULE line in the iCal template:
calendar-view-ical.tpl.php, Line 42:
RRULE;<?php print($event['rrule'] . "\n") ?>

Removing "RRULE;" from the beginning of this line (along with removing the extra carriage return noted in the other bug report) make the feed parseable by iCal.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

KarenS’s picture

The problem is that the correct way to export repeating dates is to export the start date with the RRULE. If you leave off the RRULE, you will only have the starting date. So that won't work right at all.

It seems odd that Google can't accept an RRULE, but if not we have to do more than remove the RRULE line, we have to compute all the dates that the rule would have created and export them.

So maybe we need two different iCal exports, with and without the RRULE, or a setting on the iCal view where you decide which you want.

But first we need to confirm that Google and Apple iCal can't accept RRULES, which I find hard to imagine.

FoolsRun’s picture

It's not that it can't accept RRULES, it's that the RRULES as currently exported read like this:

RRULE;RRULE:FREQ=WEEKLY;INTERVAL=1;UNTIL=20111224T045900Z;WKST=SU

With "RRULE;RRULE:" at the beginning of the line. Removing the first part with the semicolon, "RRULE;", leaving

RRULE:FREQ=WEEKLY;INTERVAL=1;UNTIL=20111224T045900Z;WKST=SU

fixes it.

KarenS’s picture

Ah!!! I missed that. Well that is definitely a bug.

bwynants’s picture

Yeay, this in combination with http://drupal.org/node/389334#comment-1997292 seems to work fine for me....

bwynants’s picture

mpotter’s picture

Can we get this fix rolled into the Calendar module please? The link to the other patches and comments seem to address other issues. I was able to fix this problem with RRULE not parsing with Google Calendar with the very simple change of removing the RRULE; at the beginning of the line in the calendar-view-ical.tpl.php file.

The original poster is correct. Line 42 in calendar-view-ical.tpl.php just needs to be changed from this:

RRULE; print($event['rrule'] . "\n")

to this:

print($event['rrule'] . "\n")

That fixed my problem with importing to Google Calendar. This simple problem still exists in the 6.x-2.x-dev version over 18 months since this original post.

glennpratt’s picture

Status: Active » Reviewed & tested by the community
FileSize
898 bytes

Tested #6 and rolled a patch.

KarenS’s picture

Status: Reviewed & tested by the community » Fixed

This fix was incorporated into another patch that was already applied.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

Caseinpoint’s picture

Subscribed