Skip to content

2015 is interpreting incorrectly #26

@shivanand3939

Description

@shivanand3939

As of now, 2015 is interpreting as Yr: 20, Month: 1, Day: 5

But it should be interpreted as Year 2015.....

Changing

p["date"] = (
"(?P"
+ "|".join(
[p["iso"] , p["mdy"], p["dmy"], p["ymd"], p["my"] , p["y"]]
)
+ ")"
)

to

p["date"] = (
"(?P"
+ "|".join(
[p["iso"] , p["y"], p["mdy"], p["dmy"], p["ymd"], p["my"] ]
)
+ ")"
)

i.e putting p["y"] at the start is solving this... pls share your thoughts

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions