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

May (month) displayed as full instead of only 3 letters when dateFormat is Jan (Italian) #11267

Closed
Zabriskije opened this issue Jul 19, 2023 · 1 comment · Fixed by #11270
Closed
Assignees
Milestone

Comments

@Zabriskije
Copy link

Zabriskije commented Jul 19, 2023

What version of Hugo are you using (hugo version)?

hugo v0.115.3+extended darwin/arm64 BuildDate=unknown

Does this issue reproduce with the latest release?

Yes


When defaultContentLanguage is set to "it", using (for example) {{ dateFormat "02 Jan 06" .Date }} returns May as maggio instead of mag. This only happens with May, other months are displayed correctly.

{{ .Date | time.Format ":date_medium" }} is working correctly, returning mag instead.

Out of curiosity, I've also tested es and fr and saw some inconsistencies there too. I'm not a Spanish/French native speaker, so I can't say if this is normal behavior, but both have some months shortened as 3 letters and some others as 4 letters (May in Spanish seems to have the same problem).

@github-actions
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 10, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants