Skip to content

Strings with year abbreviation don't parse correctly #516

@enugentdt

Description

@enugentdt

Hi there

I just started evaluating this library for use in a service. I noticed a small bit of trivia that I've found with other datetime parsing libraries.

Passing in 1y does not parse correctly. I can understand, since there is no 1m to mean one month, but year should be a unique character, at least to the english language?

As of 04/09/19, it outputs 2019-04-01 00:00:00. I'm not 100% on what unit it's deciding on, but maybe someone else will have some insight.

What makes this more interesting is if I pass en in a list of languages, it just returns None. As a matter of fact, en doesn't work at all.... Hm. I'll figure out what I'm doing wrong there

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions