Skip to content

Problems with date parsing #202

@BelKed

Description

@BelKed

As I recently realised, there are many date formats supported by Geocaching. Although, some of them are not parsed correctly. The problem is about exchanging days and months. (By the way, this problem was there before my PR #201)

Example: (All dates should be 2022-01-09)

9. 01. 2023      2023-01-09
9.1.2023         2023-01-09
9.1.2023 г.      2023-01-09
9/1/2023         2023-09-01
9/01/2023        2023-09-01
09 Jan 23        2023-01-09
09.01.23         2023-01-09
09.01.2023       2023-01-09
09.Jan.2023      2023-01-09
09/01/2023       2023-09-01
09/Jan/2023      2023-01-09
09-01-23         2023-01-09
09-01-2023       2023-01-09
9-1-2023         2023-01-09
1/9/2023         2023-01-09
01/09/2023       2023-01-09
Jan/09/2023      2023-01-09
2023. 1. 9.      2023-01-09
2023. 01. 09.    2023-01-09
2023/01/09       2023-01-09
2023-01-09       2023-01-09

I can't think of a simple solution because 09/01/2023 and 01/09/2023, 9/1/2023 and 1/9/2023...

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions