<input type=time> uses AM/PM on a system with a 24h time format setting
Categories
(Core :: Internationalization, defect, P3)
Tracking
()
People
(Reporter: michaelklein27, Unassigned)
Details
+++ This bug was initially created as a clone of Bug #1425218 +++
Firefox version: 80.0.1 (64-bit)
OS: macOS 10.15.6
Steps to reproduce:
- Have your system time format settings set to user the 24h clock, while using locale en-US.
- Go to any website that uses
<input type=time>
.
Actual results:
The time picker uses 12h format with AM/PM.
Expected results:
The time picker should use the 24h format since the system is set to use 24h format.
- Verified to work as expected on Chrome.
Reporter | ||
Updated•5 years ago
|
Reporter | ||
Updated•5 years ago
|
Comment 1•5 years ago
|
||
We don't seem to use system setting now. It depends on ICU. https://searchfox.org/mozilla-central/rev/8432d4fe31245ae9121231d7c0335aaa342675d2/toolkit/content/widgets/datetimebox.js#1356-1362
So dup of bug 1532923
Comment 2•5 years ago
|
||
I think this is a slightly different problem. We don't expose the OSPreferences to the Web because we don't want to increase fingerprinting vector.
Reporter | ||
Comment 3•5 years ago
|
||
Is there any way to force Firefox to use date/time formatting that is different from the UI language? Aka a workaround for people such as myself who use US-English UI with mostly German websites?
Comment 4•5 years ago
|
||
Can you try setting intl.regional_prefs.use_os_locales
preference to true
and restarting your browser?
Reporter | ||
Comment 5•5 years ago
|
||
(In reply to Zibi Braniecki [:zbraniecki][:gandalf] from comment #4)
Can you try setting
intl.regional_prefs.use_os_locales
preference totrue
and restarting your browser?
Unfortunately this setting seems to make no difference for me.
Comment 6•5 years ago
|
||
Can you link an example website that you test it on?
And share your I18n section of about:support
?
Reporter | ||
Comment 7•5 years ago
|
||
(In reply to Zibi Braniecki [:zbraniecki][:gandalf] from comment #6)
Can you link an example website that you test it on?
https://codepen.io/herteleo/pen/LraqoZ
And share your I18n section of
about:support
?
Internationalization & Localization
Application Settings
Requested Locales: ["en-US"]
Available Locales: ["en-US"]
App Locales: ["en-US"]
Regional Preferences: ["en-US","de-DE"]
Default Locale: "en-US"
Operating System
System Locales: ["en-US","de-DE"]
Regional Preferences: ["en-US","de-DE"]
Description
•