Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inconsistent behavior on shortened month name (portuguese and spanish) #1231

Open
Mateuscvieira opened this issue Jun 20, 2024 · 0 comments
Open

Comments

@Mateuscvieira
Copy link

The parse function behaves inconsistently when dealing with shortened dates in Portuguese:
image

The function works as expected until April, which is written Abril in PT, thus abr/18, and then it interprets the 18 as the day of the month. Changing abr to apr makes the function work. I have confirmed the same issue appears in spanish.
It's important to note that the function is indeed recognizing that abr is April, because it is returning a date in the correct month, but it for some reason ignores the specification that the "/18" is the year, not the day.

The bug was found on Windows 10, but I reproduced it now on Fedora 40, KDE spin, kernel version 6.8.11-300.fc40.x86_64. Python is 3.12.3 on a fresh install using rye.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant