scrapinghub / dateparser

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

Issue parsing shortened date string #1232

Open mushtaqak opened 3 months ago

mushtaqak commented 3 months ago

With dateparser v 1.2.0 there is an issue with parsing shortened string. Please see example below (screenshot attached):

$ dateparser.parse('Tue').strftime("%A")
$ Friday

Expectation: Tuesday

Screenshot 2024-08-02 at 5 26 13 PM

However, with 1.1.8, this issue is not happening, kindly fix the latest version. Thanks

Tip: May be today is Friday, so it is picking Friday? (not sure just wanted to share here, just in case)