scrapinghub / dateparser

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

Shortened Hebrew months are not parsed #331

Open kalugny opened 7 years ago

kalugny commented 7 years ago

When the date uses the full month name (i.e. "June"):

# works correctly
>>> parse('1 ביוני 2014')
datetime.datetime(2014, 6, 1, 0, 0)

But when using a shortened month name (i.e. "Aug."):

>>> parse('31 באוג׳ 2014') is None
True
kalugny commented 7 years ago

I've noticed this doesn't happen if I remove the ב (i.e. "In"), but some dates found in the wild do use it.

pankon commented 4 years ago

Hi, I just created a merge request to fix this