We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
If RDATE is used, getrruleset returns an empty generator.
Example:
import vobject s="""\ BEGIN:VCALENDAR VERSION:2.0 PRODID:-//Mozilla.org/NONSGML Mozilla Calendar V1.1//EN BEGIN:VTIMEZONE TZID:Europe/Paris BEGIN:STANDARD DTSTART:19701025T030000 RRULE:FREQ=YEARLY;BYDAY=-1SU;BYMONTH=10 TZNAME:CET TZOFFSETFROM:+0200 TZOFFSETTO:+0100 END:STANDARD BEGIN:DAYLIGHT DTSTART:19700329T020000 RRULE:FREQ=YEARLY;BYDAY=-1SU;BYMONTH=3 TZNAME:CEST TZOFFSETFROM:+0100 TZOFFSETTO:+0200 END:DAYLIGHT END:VTIMEZONE BEGIN:VEVENT UID:event DTSTART;TZID=Europe/Paris:20170601T080000 DTEND;TZID=Europe/Paris:20170601T090000 CREATED:20170601T060000Z DTSTAMP:20170601T060000Z LAST-MODIFIED:20170601T060000Z RDATE;TZID=Europe/Paris:20170701T080000 SUMMARY:event TRANSP:OPAQUE X-MOZ-GENERATION:1 END:VEVENT END:VCALENDAR""" o = vobject.readOne(s) r = o.vevent.getrruleset(addRDate=True) print(list(r))
Output: []
[]
The text was updated successfully, but these errors were encountered:
This looks like a Python 2/3 compatibility issue - it works for me on Python 2.7.12 but not on 3.6.1.
Sorry, something went wrong.
it works for me on Python 2.7.12
I get the following result in Python 2:
[datetime.datetime(2017, 7, 1, 8, 0, tzinfo=<tzicalvtz 'Europe/Paris'>)]
It only includes the RDATE but not DTSTART. I expected that it is included because of addRDate=True.
RDATE
DTSTART
addRDate=True
Yeah, it looks like it only actually adds the DTSTART value if there's exists an RRULE property, I'm looking into it now.
RRULE
Successfully merging a pull request may close this issue.
If RDATE is used, getrruleset returns an empty generator.
Example:
Output:
[]
The text was updated successfully, but these errors were encountered: