-
Notifications
You must be signed in to change notification settings - Fork 523
Allow DTSTART parm VALUE=DATE-TIME (fixes #401) #429
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
Conversation
Yes. The type of |
|
OK, when I have a bit of time I'll check the RFC to double-check, but if so this is fine. |
|
|
What's interesting here is that in this specific |
|
Ah, I see the issue. |
|
OK, I've got my head around how this works now. Thanks for the PR and report @Unrud. |
|
I don't think that
|
|
@Unrud I was just going by the bit you quoted above: Seems to say it can be a date or a datetime, and can have a TZ-ID parameter as well. I'm not sure exactly what to make of the |
The quote is about |
Not if it's inside of
|
|
Hm.. I think that needs to be fixed in |
|
Actually, just tested it, from dateutil import tz
from io import StringIO
TZICAL_EST5EDT = """
BEGIN:VTIMEZONE
TZID:US-Eastern
LAST-MODIFIED:19870101T000000Z
TZURL:http://zones.stds_r_us.net/tz/US-Eastern
BEGIN:STANDARD
DTSTART;VALUE=DATE-TIME:19671029T020000
RRULE:FREQ=YEARLY;BYDAY=-1SU;BYMONTH=10
TZOFFSETFROM:-0400
TZOFFSETTO:-0500
TZNAME:EST
END:STANDARD
BEGIN:DAYLIGHT
DTSTART:19870405T020000
RRULE:FREQ=YEARLY;BYDAY=1SU;BYMONTH=4
TZOFFSETFROM:-0500
TZOFFSETTO:-0400
TZNAME:EDT
END:DAYLIGHT
END:VTIMEZONE
"""
tz.tzical(StringIO(TZICAL_EST5EDT)) # Raises ValueError. |
|
Nope, my bad, was using the release branch, on |
My bad! I thought that these functions are exclusively used to parse |
No description provided.