UMNLibraries / experts_etl

Moves data from UMN to Pure (Experts@Minnesota), and vice versa.
3 stars 0 forks source link

Eliminate "Unkown format for datetime string" errors. #46

Closed nihiliad closed 2 years ago

nihiliad commented 2 years ago

This error recently started appearing in logs: experts_etl.exceptions.ExpertsEtlUnkownDatetimeFormatError: Unknown format for datetime string "2019-06-27T12:00:00.000+00:00"

Eliminate it by replacing our home-grown code with parser.isoparse() from the PyPI dateutil package, which has support for just about any ISO 8601 datetime format.