-
-
Notifications
You must be signed in to change notification settings - Fork 145
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
Wrong recurrence handling #196
Comments
Thanks for raising an issue. Can you confirm what is the expected output versus the actual? i.e. spell out what is wrong with what you are seeing |
As I wrote above I'm getting one event starting at 20191105T190000 and ending at 20191111T180000Z, another event starting at 20191106T190000 and ending at the 20191111T180000Z, another event starting at 20191107T190000 and ending at the 20191111T180000Z, and another event starting at 20191108T190000 and ending at the 20191111T180000Z. As a result I have the event once on the 5th, twice on the 6th, three times on the 7th, four times on the 8th, and so on. I would expect to get either one event for each day without any rrule or one event starting at the first (5th) day and ending at the last day (8th). Handling the other two days (9th & 10th) separately makes sense as they differ from the others. |
Basically everything is okay, the ics-parser reads the file correctly and returns the right events in The problem occurs, if you then try to re-parse the generated events again, as each generated event is marked as belonging to a recurrence, but is then interpreted as a recurrence of its own. But I currently don't see why you would re-parse the events again, if you already have the single events. |
But I'm pretty sure that I parse the file only once. Please see the original issue description. |
You wrote: "When I load the attached file, ics-parser gives me 6 events: ..." Then you wrote: "When I parse this I get the event 2 times on the 6th, 3 times on the 7th, 4 times on the 8th and so on." |
7.2.10
UTC
no value
2.1.7
Description of the Issue:
When I load the attached file, ics-parser gives me 6 events:
"rrule": "FREQ=DAILY;UNTIL=20191111T180000Z"
"rrule": "FREQ=DAILY;UNTIL=20191111T180000Z"
"rrule": "FREQ=DAILY;UNTIL=20191111T180000Z"
"rrule": "FREQ=DAILY;UNTIL=20191111T180000Z"
"recurrence_id": "20191109T190000"
"recurrence_id": "20191110T190000"
When I parse this I get the event 2 times on the 6th, 3 times on the 7th, 4 times on the 8th and so on.
Steps to Reproduce:
Rename test.txt to *.ics and load it with:
The text was updated successfully, but these errors were encountered: