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

Date not showing correctly in spanish #497

Open
zunbeltz opened this issue May 25, 2024 · 2 comments
Open

Date not showing correctly in spanish #497

zunbeltz opened this issue May 25, 2024 · 2 comments

Comments

@zunbeltz
Copy link

I have an English/Spanish mutilingual site.
My first posts' date is Date:2024-05-25
The posts are not showing the correct date in Spanish.
image
(See enero (january),
while English is showing fine
image

It is not about the translation of the month. If Date: 2024-02-25, also enero is showing.

Any idea how to fix it?

@hydr0nium
Copy link
Contributor

@zunbeltz For me it's working in spanish.

Can you post your hugo.toml file?
What version of hugo are you using? (You can use hugo version to show your installed version)

@sesom42
Copy link

sesom42 commented Jan 29, 2025

Same here.

hugo.toml:

DefaultContentLanguage = "de"
[Params]
  dateFormat = "2. Januar 2006"

Then all posts has date from January (Januar). Even with dateFormat = "2. January 2006" all posts has a date in January. So far, this can only be fixed by removing dateFormat. The date is then displayed in a standard format according to the website language.

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

3 participants