Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can't parse 'Mon, 12 Dec 2022 10:07:48 +0000' #1120

Closed
0xDEADFED5 opened this issue Jan 10, 2023 · 2 comments
Closed

can't parse 'Mon, 12 Dec 2022 10:07:48 +0000' #1120

0xDEADFED5 opened this issue Jan 10, 2023 · 2 comments

Comments

@0xDEADFED5
Copy link

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)

@asadurski
Copy link
Member

Thank you. Already reported in #1116.
Please follow that issue.

@serhii73
Copy link
Collaborator

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'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants