12:00 time (noon) displays incorrectly when using en-GB format #1555
Labels
help wanted
Extra attention is needed
🔨 p3-minor-bug
Priority 3: a bug in an edge case that only affects very specific usage
Status: PR Welcome
Welcome to Pull Request
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
The text was updated successfully, but these errors were encountered: