Closed trankmichael closed 6 years ago
Looks like the python datetime library doesn't handle negative dates (i.e. only dates from 1 AD). It is failing on:
ValueError: time data '-12000-00-00T00:00:00Z' does not match format '-%Y-%m-%dT%H:%M:%SZ'
https://www.wikidata.org/wiki/Q34#P2184 (12. millennium BCE)
Nor does it handle years larger than 9999.
This is only being used to check the format. I suppose it can just be removed with no ill effects. What will happen is if the date is misformatted, instead of an error being thrown on instantiation the wikimedia api will throw an error on write.
Most of the entities I tried work but there were a few cases that failed with this error. For example,
https://www.wikidata.org/wiki/Q34 / https://www.wikidata.org/wiki/Q4628 both fail with this error.