-
-
Notifications
You must be signed in to change notification settings - Fork 167
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
from_ical() Invalid iCalendar duration: -P9W2D #517
Comments
version icalendar==5.0.5 |
Thanks for reporting!
I wonder: what does the value mean and also where is it specified in the ICS Standard. Do you know?
|
yes it's a variant of ISO 8601 duration format
my variant looks like is working fine:
but function from_ical (line 480) should be adjusted too |
P9W2D it's 9 weeks and 2 days can be written in format P65D I guess |
modified func:
but I'm new in python and it works but I'm not sure if it's right) |
https://datatracker.ietf.org/doc/html/rfc5545#section-3.3.6 |
Thanks for all the work already! How do you feel about creating a pull request? This will make the tests run for all supported Python versions and we can see if the change breaks anything. I am happy to also answer questions and you are welcome to use this as a learning opportunity to become a contributor. What do you think?
|
done #520 |
hi, can you please help me to figure out what's wrong here and why it's failing on this?
-P9W2D it's 65 days before event trigger
thanks in advance
ics file:
code:
error:
The text was updated successfully, but these errors were encountered: