Description
Reporting a bug?
Hello.
Using Chrome, we've noticed an incorrect display of time at noon when using "en-GB" format.
A date like 01/01/2023 12:00 is displayed as 01/01/2023, 0:00 pm when it should be displayed as 01/01/2023, 12:00 pm
The time displays incorrectly when using Chrome ( 0:00 pm ) but displays correctly when using Firefox ( 12:00 pm )
I have written some code that illustrates the problem. You can access it here :
https://codesandbox.io/s/vue-i18n-9-template-forked-s686nz?file=/index.html
Run it with both Chrome and Firefox to compare the display of the second date with the different time formats.
The bug happens when displaying in Chrome using "en-GB" format.
Expected behavior
Using Chrome, a date set to noon, displayed in "en-GB" format should display like this : 12:00 pm
Reproduction
Using Chrome, a date set to noon, displayed in "en-GB" format displays like this 0:00 pm instead of 12:00 pm
You can reproduce with this code :
https://codesandbox.io/s/vue-i18n-9-template-forked-s686nz?file=/index.html
System Info
Noticed while running recent up-to-date copies of Chrome, under Windows11
Screenshot
Chrome with en-GB, the second date (midday) displays incorrectly :
Other formats "en-US" or "fr" display correctly :
Additional context
No response
Validations
- Read the Contributing Guidelines
- Read the Documentation
- Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
- Check that this is a concrete bug. For Q&A open a GitHub Discussions