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

Wrong date format for Hungarian in the CP #5186

Closed
Saboteur777 opened this issue Oct 30, 2019 · 2 comments
Closed

Wrong date format for Hungarian in the CP #5186

Saboteur777 opened this issue Oct 30, 2019 · 2 comments

Comments

@Saboteur777
Copy link
Contributor

Description

If the user language is set to Hungarian, the date format is wrong: instead of e.g. 2019. 11. 4. it should be 2019. 11. 04. (according to Hungarian Academy of Sciences). The same goes for months, so instead of 2019. 9. 4., it should be 2019. 09. 04.

tl;dr: Leading zeros missing from month and day numbers.

Steps to reproduce

  1. Set your account language to Hungarian.
  2. Create an entry with 2019. 9. 4. set as postDate. The displayed date should contain leading zeros if the month or day number is <10.

Additional info

  • Craft version: 3.3.9
  • PHP version: 7.3.6
@brandonkelly
Copy link
Member

Thanks for clarifying that two-digit date numbers is expected. That’s pretty uncommon in the US, so I assumed it was universally, but I’ve now reverted that custom change to the ICU date formats, for today’s release.

@Saboteur777
Copy link
Contributor Author

Saboteur777 commented Oct 30, 2019 via email

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

2 participants