scrapinghub / dateparser

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

can't parse Thu, 19 Jan 2023 10:45:00 +03 #1127

Open 0xDEADFED5 opened 1 year ago

0xDEADFED5 commented 1 year ago

dateparser.parse('Thu, 19 Jan 2023 10:45:00 +03') = None

serhii73 commented 1 year ago

Thank you for reporting this issue. It seems that if there is +03 this is the reason why the dateparser returns None.

In [8]: dateparser.parse('Thu, 19 Jan 2023 10:45:00')
Out[8]: datetime.datetime(2023, 1, 19, 10, 45)
0xDEADFED5 commented 1 year ago

strange result if 'Thu, ' is removed from the start:

dateparser.parse('19 Jan 2023 10:45:00 +03')
datetime.datetime(2023, 1, 3, 10, 45)