-
-
Notifications
You must be signed in to change notification settings - Fork 519
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
EXDATE not working if used together with RRULE in set #351
Comments
Im having issues with trying to pass EXDATE in a rule. |
@DeanOutlaw This is because
|
Yeah, this is not the same issue I have @DeanOutlaw @davidgoli |
Hi, interestingly if we use .all method before using EXDATE the exclusions don't work. |
How do I add an exdate then? dtstart is an rrule property on the rrule object. I do not want to use an rrule set - I should be able to do this just with toString() and fromString() |
@stclairdaniel rrulejs is largely based on the iCal spec. For example,
What day of the week are occurrences on? The dtstart tells you. In contrast, EXDATE does not affect the RRULE, it affects the VEVENT object. Technically, a VEVENT can have multiple RRULEs associated with it. The occurrences associated with the VEVENT are the distinct union of all the occurrences produced by its RRULEs, minus the occurrences produced by the EXRULEs, plus the RDATEs, minus the EXDATEs. In rrulejs, RRuleSet approximates the VEVENT recurrence logic.
Try the
¯_(ツ)_/¯ |
I'm not sure if this is related but we seem to be having problems with exdate on OSX specifically. On windows and our linux environment there are no problems but on OSX we get rules.exdate is not a function |
use second RRuleSet() and get the difference.
|
I am still getting this same error. In the js code I can see there is reference to exdate but when I use it in the tule string I receive the error listed above. |
Hi, i've spent hours trying to figure out what am I doing wrong, but it looks like there's an issue with the library itself.
Bellow you can see my code snippet.
A few things to have in mind:
My snippet:
Expected output:
Every single day except
2019-06-19
Actual output:
Every single day, with no exclusion...
Version of rrule:
2.6.0
Operatin system:
Mac OS
Local Timezone:
PDT
The text was updated successfully, but these errors were encountered: