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

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

Open
4 tasks done
rdtome opened this issue Sep 14, 2023 · 2 comments
Open
4 tasks done

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

rdtome opened this issue Sep 14, 2023 · 2 comments
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

Comments

@rdtome
Copy link

rdtome commented Sep 14, 2023

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 rdtome added the Status: Review Needed Request for review comments label Sep 14, 2023
@flopail
Copy link

flopail commented Sep 14, 2023

Thank you Robert! I've got exactly the same problem.

@kazupon kazupon added 🔨 p3-minor-bug Priority 3: a bug in an edge case that only affects very specific usage help wanted Extra attention is needed Status: PR Welcome Welcome to Pull Request and removed Status: Review Needed Request for review comments labels Oct 16, 2023 — with Volta.net
@Summer-Shen
Copy link

Not sure why, but i18n doesn't seem to work in the demo right now. I've tested on Chrome and Firefox, and I've also downloaded the demo and tested it locally in Chrome and Edge. Every testing session gives me

demo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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
Projects
None yet
Development

No branches or pull requests

4 participants