Skip to content

Inconsistent parsing of a date like "Oct-23" #1235

@MrinalJain17

Description

@MrinalJain17

The following can be reproduced with dateparser v1.2.

import dateparser

settings = {"REQUIRE_PARTS": ["month", "year"]}

dateparser.parse("Mar-23", settings=settings)  # Correctly parsed

dateparser.parse("Oct-23", settings=settings)  # Parsing fails
dateparser.parse("Oct-23")                     # Parsing succeeds

Weirdly, this parsing failure only happens for the month of October.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions