Closed Bug 1819353 Opened 2 years ago Closed 2 years ago

en-CA locale displays incorrect date and time format

Categories

(Core :: JavaScript: Internationalization API, defect)

Firefox 111
defect

Tracking

()

RESOLVED DUPLICATE of bug 1818103

People

(Reporter: pleduc, Unassigned)

Details

Steps to reproduce:

Set browser Language to "English (CA)"
go to: https://www.localeplanet.com/support/browser.html
View results from date.toLocaleDateString(), date.toLocaleTimeString(), and date.toLocaleString()
(issue present on both Firefox for Windows (110.0) and Android (110.0.1)

Actual results:

date.toLocaleDateString(): 2/28/2023
date.toLocaleTimeString(): 9:52:03 a.m.
date.toLocaleString(): 2/28/2023, 9:52:03 a.m.

Expected results:

Accoring to the recommendation from the Government of Canada (https://en.wikipedia.org/wiki/Date_and_time_notation_in_Canada):

date.toLocaleDateString(): 2023-02-28
date.toLocaleTimeString(): 09:52:03
date.toLocaleString(): 2023-02-28 09:52:03

Status: UNCONFIRMED → RESOLVED
Closed: 2 years ago
Component: Untriaged → JavaScript: Internationalization API
Duplicate of bug: 1818103
Product: Firefox → Core
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.