scrapinghub / dateparser

python parser for human readable dates
BSD 3-Clause "New" or "Revised" License
2.55k stars 465 forks source link

ISO8601 date format is incorrectly recognized when language is 'de' #765

Open workflowsguy opened 4 years ago

workflowsguy commented 4 years ago
>>> dateparser.parse('2020-08-06', languages=['de'])
datetime.datetime(2020, 6, 8, 0, 0)

The expected result is datetime.datetime(2020, 8, 6, 0, 0)

noviluni commented 3 years ago

I think this could be fixed by using the the PARSERS settings using the new ISO parser (https://github.com/scrapinghub/dateparser/pull/790) before the others, but I'm not sure.

cc: @Gallaecio