Closed Bug 1663643 Opened 5 years ago Closed 5 years ago

<input type=time> uses AM/PM on a system with a 24h time format setting

Categories

(Core :: Internationalization, defect, P3)

80 Branch
x86_64
macOS
defect

Tracking

()

RESOLVED DUPLICATE of bug 1532923

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.
OS: Unspecified → macOS
Hardware: Unspecified → x86_64
Summary: <input type=time> uses AM/PM on a system with a 24h locale → <input type=time> uses AM/PM on a system with a 24h time format setting
Status: UNCONFIRMED → RESOLVED
Closed: 5 years ago
Resolution: --- → DUPLICATE

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.

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?

Can you try setting intl.regional_prefs.use_os_locales preference to true and restarting your browser?

Flags: needinfo?(michaelklein27)

(In reply to Zibi Braniecki [:zbraniecki][:gandalf] from comment #4)

Can you try setting intl.regional_prefs.use_os_locales preference to true and restarting your browser?

Unfortunately this setting seems to make no difference for me.

Flags: needinfo?(michaelklein27)

Can you link an example website that you test it on?

And share your I18n section of about:support?

(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"]

You need to log in before you can comment on or make changes to this bug.