Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Apple Calendar support #356

Closed
christianwach opened this issue Mar 22, 2016 · 7 comments
Closed

Apple Calendar support #356

christianwach opened this issue Mar 22, 2016 · 7 comments

Comments

@christianwach
Copy link
Contributor

Hi @stephenharris - would you consider adding an iCal feed specifically for Apple Calendar which replaces the use of RDATE with individual occurrences?

As far as I can tell from my tests, Apple Calendar not appear to fully support RDATE - also mentioned in, for example, this post on the WordPress forums and this post on StackExchange. A calendar that illustrates the issue can be found here, in which the problem events are ones with custom repeating schedules.

@stephenharris
Copy link
Owner

This is doable without editing the core code. You would need to intercept the query at the pre_get_posts stage (probably later on, say priority 15) and ensure that group_events_by was set to occurrence. Then you can copy the ical.php template your theme and make any necessary adjustments.

One such change would be to edit the UID - probably by appending the occurrence ID to it to ensure it's unique amongst all occurrences. You would probably want to remove the RRULE, EXDATE AND RDATE too.

However, I don't think a modified template for Apple Calendar would be incorporated into the core code.

@christianwach
Copy link
Contributor Author

Thanks for the pointers, I'll see what I can do. In the end I guess it's up to Apple to fix their software, but it's something that confounds the expectations of many users of the calendar feed.

@ajdavis
Copy link

ajdavis commented May 10, 2016

@christianwach this is an issue for me, too. Have you written the code that @stephenharris suggested to you? I'd like see it, if you have.

@christianwach
Copy link
Contributor Author

@ajdavis No not yet. I will make it public when I do.

@ajdavis
Copy link

ajdavis commented Jun 9, 2016

@christianwach Are you ready now? Would you be willing to share with me your work-in-progress, at least? Maybe we could finish it together.

@christianwach
Copy link
Contributor Author

@ajdavis It's a low priority for me, I'm afraid.

@christianwach
Copy link
Contributor Author

Leaving this here in case anyone's still in need of this: I've published a basic plugin that offers an Apple Calendar feed for the full calendar. See:

https://github.com/christianwach/event-organiser-apple-cal

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants