Skip to content

intl.datetimeformat comma removed after version 20.11.1 #53083

Closed as not planned
@dgabrielm

Description

@dgabrielm

Version

20.11.2+

Platform

Darwin Darios-MacBook-Pro.local 22.6.0 Darwin Kernel Version 22.6.0: Wed Oct 4 21:25:26 PDT 2023; root:xnu-8796.141.3.701.17~4/RELEASE_X86_64 x86_64

Subsystem

intl.datetimeformate

What steps will reproduce the bug?

open terminal
confirm node version is above 20.11.1
node
node interface runs
d = new Date(Date.now())
formatted = new Intl.DateTimeFormat('en-GB', { dateStyle: 'full', timeStyle: 'medium' }).format(d)

output will show date string e.g. 'Tuesday 21 May 2024 at 09:55:02' with missing comma

If you repeat the process with 20.11.1 or below the output will be with a comma e.g. 'Tuesday, 21 May 2024 at 09:55:02'

How often does it reproduce? Is there a required condition?

every time

What is the expected behavior? Why is that the expected behavior?

output of formatted date should be (example) 'Tuesday, 21 May 2024 at 09:55:02'

What do you see instead?

I see instead (example) 'Tuesday 21 May 2024 at 09:55:02'

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    i18n-apiIssues and PRs related to the i18n implementation.wontfixIssues that will not be fixed.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions