Closed EnigmaSolved closed 2 years ago
Forgive me, I'm curious: @EnigmaSolved, when you say you "edited the event to end its repetition" - was this manually or via MS Outlook's user-interface?
Forgive me, I'm curious: @EnigmaSolved, when you say you "edited the event to end its repetition" - was this manually or via MS Outlook's user-interface?
Ah, yes, via MS Outlook's user-interface. Great question @s0600204 -- I should have been more clear! :) In Outlook I went into the recurrence settings and set an end date for the recurrence to be prior to Tuesday, January 11. After realizing that the event was still being picked up by ics-parser as having a recurrence on January 11 I tried setting the end date for even earlier (initially I had set it for January 10), thinking perhaps something about the close proximity might matter somehow, but setting it to earlier (eg, last week? can't remember what exactly I set it to) didn't seem to make any difference.
Hmm. Seems there's a couple of behaviour quirks within Outlook:
UNTIL
within the Recurrence Rule; instead, the COUNT
has been reduced to 1
.Anyway, this doesn't solve the problem, which is that COUNT=1
and we don't currently handle this case correctly. Pull Request #294 should provide a workable solution.
And thank you for reporting this.
I only have a second, but first wanted to say Thank you @s0600204 ! And then add (which I probably should have clarified) that this ics file is generated by Outlook and so is only a subset of the full Outlook calendar, which is probably why some of the weirdness you mention regarding the first occurrence being so recent (because the generated ics is configured to only include a little bit of history, and mostly just include future events, for obvious reasons).
I also suppose then it is possible that if the timing had been different that we could have a COUNT=2
or COUNT=3
etc. (if I'm interpreting things correctly, and COUNT refers to how many repetitions/recurrences before event ceases to recur).
Again, thank you so much, and I'm glad this has been helpful info in improving the software!
Greetings, thank you so much for creating ics-parser -- it has been super-useful!
I may have encountered a bug (or I may be just misunderstanding something). I have an event (we'll call it "Example" though the real name is different) that repeats at 9am every 4 weeks on a Tuesday. On Monday, January 10 I edited the event to end its repetition (so that it would no longer recur and would not recur for Tuesday, January 11, the next normal recurrence). And I created a new version of the event 4 weeks out on Tuesday, February 8. Thus I was skipping Tuesday, January 11. However, somehow the ics-parser is reading that the Tuesday January 11 event still exists/occurs (ie, the ics-parser is producing an instance of this event for Tuesday, January 11), which makes me think that something is being misinterpreted with the recurrence rules (perhaps?). Below is a subset of the actual ics file. New Lines are added for visual clarity. I've omitted all other events, and I have changed the Event Summaries and Categories, but everything else is unchanged.
Everything else has been working fine for a few weeks (ie, I get valid events via the ics-parser and everything else works fine with my code and with ics-parser), so there seems to be something peculiar about this event.
Let me know if you need anything else for debugging, or if I've just made some silly mistake somewhere!
Thanks much, and if this is a bug I hope the above is helpful info! :)
7.3.33
America/New_York
2.2.2
ICS Data (a subset of what is created automatically by Microsoft Outlook):
A sample of my PHP code: