nickesk / pyactiveresource

Automatically exported from code.google.com/p/pyactiveresource
Other
0 stars 0 forks source link

Parsing ISO 8601 datetime #8

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Datetime parsing in utils.xml_to_dict fail hard at parsing ISO 6601 datetime in 
the wild.
For example: Highrise API is using a format like this : "2009-05-01T10:23:40Z" 
which is valid iso 
format but doesn't match format '%Y-%m-%dT%H:%M:%S+0000' use in xml_to_dict.

Original issue reported on code.google.com by timothee...@gmail.com on 19 Jun 2009 at 12:12

GoogleCodeExporter commented 9 years ago
My bad, I've not check date_parse import.

Original comment by timothee...@gmail.com on 19 Jun 2009 at 12:51

GoogleCodeExporter commented 9 years ago
It would probably be wise for us to give people a hint about installing extra
packages when parsing fails.

Original comment by mark.r.r...@gmail.com on 19 Jun 2009 at 5:30

GoogleCodeExporter commented 9 years ago
I have added a link to the dateutil and pyxml packages when there is a parse 
error.

Original comment by mark.r.r...@gmail.com on 19 Jun 2009 at 5:45