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

RFC compliance and fixes for issue #137 #180

Open
wants to merge 12 commits into
base: master
Choose a base branch
from

Conversation

ftcvlad
Copy link

@ftcvlad ftcvlad commented Jun 8, 2020

This PR fixes #137 (bugs 1 and 3). 'DTEND not predictable' mentioned in #137 happens because DTEND from rrule string takes precedence over the one set by parameter. This is not changed.

Bug 1: recurr does not parse rrule string correctly if the string has TZID. At the same time when converting Rule to string recurr is able to output TZID.
Bug 2: When converting Rule to string, recurr outputs 'DTSTART=', which RFC 5545 doesnt allow, and which recurr is not able to correctly parse

  1. Test Recurr is able to parse the string created by itself
  2. Fix parsing for the test to pass

Bug 3: If endDate is passed as DateTimeImmutable it is not applied to the produced rrule string because the check is instanceOf DateTime. Check for DateTimeInterface

DTSTART, DTEND and TZID from rrule string take precedence over constructor parameters

@ftcvlad ftcvlad changed the title RFC compliance and fixes for issue #137 RFC compliance and fixes for issue Fizes #137 Jun 8, 2020
@ftcvlad ftcvlad changed the title RFC compliance and fixes for issue Fizes #137 RFC compliance and fixes for issue Fixes #137 Jun 8, 2020
@ftcvlad ftcvlad changed the title RFC compliance and fixes for issue Fixes #137 RFC compliance and fixes for issue fixes #137 Jun 8, 2020
@ftcvlad ftcvlad changed the title RFC compliance and fixes for issue fixes #137 RFC compliance and fixes for issue #137 Jun 8, 2020
@dereuromark
Copy link

This looks quite useful.
Is this library still maintained or did someone fork it?

@romansidorov
Copy link

@simshaun Hi, could you please make a merge?

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

Successfully merging this pull request may close these issues.

Rule::loadFromString cannot handle DTSTART/DTEND with timezones
3 participants