scrapinghub / dateparser

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

German "Uhr" does not work #1159

Open filipre opened 1 year ago

filipre commented 1 year ago

Hi, it looks like full hours do not work, at least in German. For example, "18 Uhr" should be 2023-03-28 18:00 but it is 2023-03-18

>>> dateparser.parse("18 Uhr", languages=['de'], settings={'PREFER_DATES_FROM': 'future'})
datetime.datetime(2023, 3, 18, 0, 0)

Best!

susca commented 1 year ago

I doesn't work in Spanish either

>>> dateparser.parse("a las 3", languages=["es"])
datetime.datetime(2023, 11, 3, 0, 0
>>> dateparser.parse("a las 3 de la tarde", languages=["es"])

>>>