I believe this issue may have been introduced in a recent update because I do not recall having this issue in 7.x-3.3.

The Problem

In a nutshell if you have a repeating event but one of the days the event would normally repeat is omitted using the exclude date checkbox and you use the include date checkbox to specify a replacement date everything works fine within the Calendar module itself but not within date_ical. The initial event date/time (and all the regular repeated date/times for the event) will work fine but the included exception does not work.

Google Calendar

In Google Calendar the include date will show up but the time for this instance of the event is reset to 12am.

iOS Calendar App

Using the iOS calendar app the include date will not be displayed at all.

Example

I use this awesome module for a series of school websites. See the following school calendar and pay close attention to the repeating event titled World Beat Percussion from 2:30 to 3:30 every Thursday beginning September 10th. More specifically look at how this event is not displayed on October 8th because of Parent Teacher Conferences and is listed on Tuesday, October 6th instead.

If you subscribe to the calendar using the ical button at the bottom of the page and look at this event on October 6th you'll see the issue I'm experiencing.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

CopperBot created an issue. See original summary.

coredumperror’s picture

OK, I think I see the problem. The Date module lets you set a DATE as an inclusion, but what that really means is that you're including a combination of the original event's TIME with the included DATE. I was under the impression that the Date module stores the combined DATETIME value in the DB, but it apparently doesn't, which is why Date ICal includes just the DATE. That's why you get midnight of the previous day on Google calendar (not sure why it fails entirely on iCal, though).

I'll go fix that right now.

coredumperror’s picture

Priority: Major » Normal
Status: Active » Needs review
FileSize
3.79 KB

OK, here's a patch. Please let me know if this works for you, so I can add it to git and the dev build.

I didn't manage to make the additions work in Apple's Calendar app, but as far as I can tell, this is Apple's fault, rather than Date iCal's. The RDATE value in the .ics file is perfectly fine. Google Calendar loads it correctly, but Apple Calendar doesn't.

JayDarnell’s picture

Thank you for the speedy response coredumperror. Patch #3 seems to work perfectly!

coredumperror’s picture

Status: Needs review » Fixed

Great, glad to hear it! I'll get this pushed to git momentarily.

  • coredumperror committed dd3efe3 on 7.x-3.x
    Issue #2565287: Fixed RDATEs and EXDATEs in exported iCal feeds.
    
    I'm...

Status: Fixed » Closed (fixed)

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