Skip to content

day_first parse when year_first format does nothing? #201

Open
@Owyn

Description

@Owyn

Describe the bug
Can't get it to parse as american time when the year is written first

Environment and Version

  • OS (incl. terminal and shell used): Win 10
  • Python Version: 3.10.1
  • maya Version: 0.6.1
  • Your timezone: GMT+3

To Reproduce

>>> maya.parse("2024-01-12 17:13:51", "UTC", True).datetime()
datetime.datetime(2024, 1, 12, 17, 13, 51, tzinfo=<UTC>)
>>> maya.parse("2024-01-12 17:13:51", "UTC", False).datetime()
datetime.datetime(2024, 1, 12, 17, 13, 51, tzinfo=<UTC>)

Expected behavior
A way to make it parse 2024-01-12 as 1st of December, not 12th of January

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