Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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.
Comment | File | Size | Author |
---|---|---|---|
#7 | calendar-ical-duplicate-RRULE-424048-6.patch | 898 bytes | glennpratt |
Comments
Comment #1
KarenS CreditAttribution: KarenS commentedThe 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.
Comment #2
FoolsRun CreditAttribution: FoolsRun commentedIt'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.
Comment #3
KarenS CreditAttribution: KarenS commentedAh!!! I missed that. Well that is definitely a bug.
Comment #4
bwynants CreditAttribution: bwynants commentedYeay, this in combination with http://drupal.org/node/389334#comment-1997292 seems to work fine for me....
Comment #5
bwynants CreditAttribution: bwynants commentedpatch at http://drupal.org/node/389334#comment-2011452
Comment #6
mpotter CreditAttribution: mpotter commentedCan 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.
Comment #7
glennpratt CreditAttribution: glennpratt commentedTested #6 and rolled a patch.
Comment #8
KarenS CreditAttribution: KarenS commentedThis fix was incorporated into another patch that was already applied.
Comment #10
Caseinpoint CreditAttribution: Caseinpoint commentedSubscribed