scrapinghub / scrapinghub/dateparser

Can't parse "Thu 30 May 2024 10:13:10 -0500 (CDT)"

Open
#1,227 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
2.9k
Forks
520
Avg merge
22h 56m
Merged PRs (30d)
6

Description

I came across a string that unfortunately doesn't parse. I get the same result in markusmobius/go-dateparser (where I first encountered it).

>>> import dateparser                                                                                                                                                                                                 
>>> dateparser.parse("Thu 30 May 2024 10:13:10 -0500 (CDT)") == None
True

For context it's from an email header (Date: Thu, 30 May 2024 10:13:10 -0500 (CDT)) from what I think is sent via JavaMail (now Jakarta Mail).

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by running the reported dateparser.parse reproduction for "Thu 30 May 2024 10:13:10 -0500 (CDT)" and inspect the parser entry point handling this email-style date. Done means the supplied string is parsed successfully instead of returning None, with behavior covered by an appropriate regression test.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.