datetime parser fails on valid ISO 8601 string
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
dateutil |
Confirmed
|
High
|
Tomi Hukkalainen |
Bug Description
dateutil.
-- input = a string, supposedly formatted as an ISO 8601 date/time
-- output = a Python datetime, if the input could be parsed
This works:
>>> dateutil.
datetime.
This fails:
>>> dateutil.
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Library/
return DEFAULTPARSER.
File "/Library/
raise ValueError, "unknown string format"
ValueError: unknown string format
The only difference between the two is, in failed case fractional seconds are delimited by comma, not period.
The ISO 8601 standard allows both comma and period.
Should succeed / give the same output for both inputs.
Regards
-- Chris
status confirmed
importance high
assignee tpievila
--
Tomi Pieviläinen, +358 400 487 504
A: Because it disrupts the natural way of thinking.
Q: Why is top posting frowned upon?