You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There seems an issue with Microsoft ICS. The original event and the recurrent event are displayed both the same day.
It is hard to explain, so I will copy a comment from WordPress plugin which use your library and had fixed the issue.
Note: This handling addresses an issue with, at least, Outlook/Office 365, where an
individual instance that deviates from the recurrence rules appears in the array, in addition to the regular (but, in this instance, incorrect) rules. Each recurrence
in the array can be identified by the 'uid' key. The individual instances that deviate
are identified by 'recurrence_id', which is absent in the event entry that follows the
normal rule. Therefore, we look for instances of 'recurrence_id', find the
corresponding 'uid', and then look through all other events for the date for an
instance that includes 'uid' but not 'recurrence_id'.
This may also be an issue with the ICS Parser library, in that it does not seem aware
of this handling in Office 365.
PHP Version
8.3
PHP date.timezone
UTC
ICS Parser Version
3.4.1
Operating System
Linux
Description
There seems an issue with Microsoft ICS. The original event and the recurrent event are displayed both the same day.
It is hard to explain, so I will copy a comment from WordPress plugin which use your library and had fixed the issue.
https://plugins.trac.wordpress.org/browser/ics-calendar/tags/11.4.2/class-r34ics.php#L2079
Indeed, their code seems to fix the problem, but it would be better if the correction were made in the library itself.
Steps to Reproduce
use this ics :
Result : there are two events instead of one.
The text was updated successfully, but these errors were encountered: