scrapinghub / scrapinghub/dateparser
Date will be Parsed as Time: Behaviour Changes from 0.7.6 to 1.0.0
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 2.9k
- Forks
- 520
- Avg merge
- 22h 56m
- Merged PRs (30d)
- 6
Description
VERSION 0.7.6
In [2]: import dateparser
In [3]: dateparser.parse('15.10')
Out[3]: datetime.datetime(2020, 10, 15, 0, 0)
Version 1.0.0
dateparser.parse('15.10')
Out[9]: datetime.datetime(2020, 11, 4, 15, 10)
I found no way, to force 1.0.0 to deactivate the time-parsing?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No source file or test is named. Reproduce dateparser.parse('15.10') on versions 0.7.6 and 1.0.0, then trace the parsing path that chooses a date or time interpretation. Done means the intended interpretation is restored or a documented way to disable time parsing is provided, with regression coverage if the project has relevant tests.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100