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
ValueError: unsupported DTSTART parm: VALUE=DATE-TIME #401
Comments
@potuz This does not at all seem to be a bug. If you can show me a valid Consider that If you can show me somewhere in the iCalendar RFC that cc @Unrud @geier @wpercy Do you guys want to make the case for why whatever it is you're doing is the right thing here? |
Oh, actually, I think I may have been misreading this. I thought this was something like Can someone generate one or more valid |
Sure, this is my typical calendar entry generated by khal.
|
The relevant quote from the RFC (RFC5545 has superseeded RFC2445) is probably this:
In khal we solve this by extracting DTSTART's datetime and handing it over to rrule(), I'm not sure if this is an issue you should fix (instead of radicale). |
|
Thanks guys, I'll look into this. |
Allow DTSTART parm VALUE=DATE-TIME (fixes #401)
I reported this on khal:
pimutils/khal#679
and radicale:
Kozea/Radicale#646
When trying When trying to sync a calendar built from khal to radicale I get
Traceback (most recent call last):
File "/usr/lib/python3.4/site-packages/vobject/base.py", line 183, in transformToNati
ve
return self.behavior.transformToNative(self)
File "/usr/lib/python3.4/site-packages/vobject/icalendar.py", line 989, in transformT
oNative
obj.registerTzinfo(obj.tzinfo)
File "/usr/lib/python3.4/site-packages/vobject/icalendar.py", line 150, in gettzinfo
return tz.tzical(buffer).get()
File "/usr/lib/python3.4/site-packages/dateutil/tz/tz.py", line 1109, in init
self._parse_rfc(fobj.read())
File "/usr/lib/python3.4/site-packages/dateutil/tz/tz.py", line 1230, in _parse_rfc
cache=True)
File "/usr/lib/python3.4/site-packages/dateutil/rrule.py", line 1603, in call
return self._parse_rfc(s, **kwargs)
File "/usr/lib/python3.4/site-packages/dateutil/rrule.py", line 1562, in _parse_rfc
raise ValueError("unsupported DTSTART parm: "+parm)
ValueError: unsupported DTSTART parm: VALUE=DATE-TIME
Which is due to rrule.py not wanting any parameter to DTSTART.
The following patch is ignoring the parameter and solves the issue for me, until someone comes with a better fix.
The text was updated successfully, but these errors were encountered: