scrapinghub / scrapinghub/dateparser

Date will be Parsed as Time: Behaviour Changes from 0.7.6 to 1.0.0

Open
#829 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

discussion
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

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

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.