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

Hardcoded date formats #2534

Closed
alexandrevicenzi opened this issue May 15, 2020 · 2 comments
Closed

Hardcoded date formats #2534

alexandrevicenzi opened this issue May 15, 2020 · 2 comments

Comments

@alexandrevicenzi
Copy link

Summary

Date format is hard coded to "%B %-d, %Y" in many places.

Motivation

This date format does not goes well in Portuguese.

PT-BR uses DD/MM/YYYY format, or the long version 15 de Maio de 2020, as i18n does not work it shows as May 15, 2020.

Even with some hacks to translate May to Maio it would look like Maio 15, 2020, this does not make much sense in PT-BR.

It would be nice to have a settings called date_format or something like where I could set all dates to the appropriate format in my language.

Drawbacks

I need to hack the theme to change to "%d/%m/%Y" in multiple places.

@mmistakes
Copy link
Owner

Closed as this is a duplicate of #815... see my response there.

As far as localizing the date. Ideally Jekyll core would support it instead of having to resort to a bunch of Liquid code. Something like this was proposed but appears to have gone stale jekyll/jekyll#5478

@alexandrevicenzi
Copy link
Author

Upstream issue was closed, that's never going to be implemented.

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

No branches or pull requests

2 participants