Skip to content

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

Open
@rdtome

Description

@rdtome

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Status: PR WelcomeWelcome to Pull Requesthelp wantedExtra attention is needed🔨 p3-minor-bugPriority 3: a bug in an edge case that only affects very specific usage

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions