-
Notifications
You must be signed in to change notification settings - Fork 523
Closed
Milestone
Description
from dateutil import rrule
rrule.rrulestr('DTSTART;TZID=America/New_York:20180119T130000Z RRULE:FREQ=DAILY;INTERVAL=1;COUNT=7')
File "~/venvs/tmp-c74b801dfc74a8d7/lib/python2.7/site-packages/dateutil/rrule.py", line 1616, in __call__
return self._parse_rfc(s, **kwargs)
File "~/venvs/tmp-c74b801dfc74a8d7/lib/python2.7/site-packages/dateutil/rrule.py", line 1569, in _parse_rfc
raise ValueError("unsupported DTSTART parm: "+parm)
ValueError: unsupported DTSTART parm: TZID=AMERICA/NEW_YORKFrom https://www.rfc-editor.org/rfc/rfc5545.txt:
The following are examples of this property parameter: DTSTART;TZID=America/New_York:19980119T020000 DTEND;TZID=America/New_York:19980119T030000 The "TZID" property parameter MUST NOT be applied to DATE properties and DATE-TIME or TIME properties whose time values are specified in UTC.
Is there a way to accomplish this in dateutil that I'm unaware of?