Skip to content

Different Parsing Behavior : 1.x and 2.x #286

Open
@CtheSky

Description

@CtheSky

There's a different parsing behavior between version 1.x and 2.x.

pendulum 1.5.1
>>> pendulum.parse('2011-8')
<Pendulum [2011-08-09T00:00:00+00:00]>
pendulum 2.0.3
>>> pendulum.parse('2011-8')
ParserError: Unable to parse string [2011-8]

It seems like the leading zero is required since "2011-08" can be parsed correctly, but it's not mentioned in the change log. Will it be fixed or supported in future?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions