Closed 0xDEADFED5 closed 1 year ago
Thank you. Already reported in https://github.com/scrapinghub/dateparser/issues/1116. Please follow that issue.
dateparser 1.1.6 is out where fixed this bug @0xDEADFED5
In [1]: import dateparser
In [2]: dateparser.parse('Mon, 12 Dec 2022 10:07:48 +0000')
Out[2]: datetime.datetime(2022, 12, 12, 10, 7, 48, tzinfo=<StaticTzInfo 'UTC\+00:00'>)
In [3]: dateparser.__version__
Out[3]: '1.1.6'
unable to parse strings like the following:
Mon, 12 Dec 2022 10:07:48 +0000
if I remove the 'Mon, ' part, like using the following regex, then it works:foo = re.sub('^\\w+, ', '', foo)