-
Notifications
You must be signed in to change notification settings - Fork 76
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
Weekly Rule with selected Weekdays does not produce the correct dates. #90
Comments
After a quick test it seems that this happens when DTSTART is an Immutable DateTime object. Change it to:
returned the expected 10 dates. |
I suppose the parseDate function should either throw an exception if an immutable DateTime is used, or it should not directly clone the object but rather convert it to a mutable DateTime object? |
something like this:
|
The fix is available in v2.2.1, thanks for the bug report! |
Hello,
When using a weekly frequency with a BYDAY rule, only days between the weekday of DTSTART and the day before WKST (inclusive) are considered. See the following example:
This produces the following output:
I believe this should include Mondays and Wednesdays after the first week, Thus it should be the following output:
Changing the above
DTSTART
value to2021-01-04 08:00
produces the correct dates:The text was updated successfully, but these errors were encountered: