-
-
Notifications
You must be signed in to change notification settings - Fork 516
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
Passing in integer for byweekday yields incorrect toText() #153
Comments
I'm getting the same bug. Has anyone be able to track this down? |
The issue is with how this library handles numeric values representing days. I opened a pull request that fixes the "off-by-one" issue in the bottom half of this issue. The "every week" instead of "every week on Monday" is solved by changing |
This looks legitimate. |
Permit integers in byweekday (#153)
When integers are passed in to byweekday,
toText()
has strange behavior. The docs state that0 == RRule.MO
; however, toText parses 1 as Sunday, and fails entirely on 0:The text was updated successfully, but these errors were encountered: