TST/BUG: Improve error handling when parsing iso 8601 strings · Issue #8910 · pandas-dev/pandas (original) (raw)

xref #8832

Parsing of datetime strings ending with Z0or Z00should raise (this is currently only the case with Z0).
This is due to the fact that the parser in np_datetime_strings.c cannot raise its own errors since in tslib.pyx, function convert_ts_tsobject(), any ValueError is catched and then a fallback external parser (dateutil) is called.