vue-i18n icon indicating copy to clipboard operation
vue-i18n copied to clipboard

12:00 time (noon) displays incorrectly when using en-GB format

Open rdtome opened this issue 2 years ago • 2 comments
trafficstars

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 :

image

Other formats "en-US" or "fr" display correctly :

image

image

Additional context

No response

Validations

rdtome avatar Sep 14 '23 15:09 rdtome