Open Bug 1532923 Opened 7 years ago Updated 5 months ago

use mozIOSPreferences API to identify the correct skeleton/pattern for the time picker

Categories

(Core :: Layout: Form Controls, enhancement, P3)

enhancement

Tracking

()

Tracking Status
firefox67 --- affected

People

(Reporter: mkmelin, Unassigned)

References

(Blocks 1 open bug)

Details

+++ This bug was initially created as a clone of Bug #1425218 +++

Per bug 1425218 comment 6:

We could also use mozIOSPreferences API to identify the correct skeleton/pattern for the time picker. This pattern will take into account manual hourCycle set in the OS on Windows/Gnome/Ubuntu/MacOS/Android. I'm not sure if we're doing it right now, but if we don't, we should.

See https://searchfox.org/mozilla-central/source/intl/locale/mozIOSPreferences.idl#92

Priority: -- → P3
Severity: normal → S3
Duplicate of this bug: 1891318

I would be very grateful if this bug was resolved.

I also just came here as I experience the same issue on Windows and Linux. My setup:

  • Using Firefox en-US on Windows with en-US (en language for Firefox and OS)
  • Using de-CH regional preferences (which should provide 24h time format)

Websites using <input type=time> use AM/PM time format which is very uncommon here in Switzerland (CH).

about:support showing:

  • Requested Locales: ["en-US"]
  • Available Locales: ["en-US", "de"] -> Note: Installed DE language pack
  • App Locales: ["en-US"]
  • Regional Preferences: ["en-US"]
  • Default Locale: "en-US"
    Operating System
  • System Locales: ["en-US"]
  • Regional Preferences: ["de-CH"]

According to the documentation here if the language ("en" prefix) of Firefox and OS is identical then Firefox should pick the OS regional preferences. But it doesn't.

Also as documented when setting intl.regional_prefs.use_os_locales=true in about:config my Firefox about:support changing properly to

  • Requested Locales: ["en-US"]
  • Available Locales: ["en-US", "de"] -> Note: Installed DE language pack
  • App Locales: ["en-US"]
  • Regional Preferences: ["de-CH"]
  • Default Locale: "en-US"
    Operating System
  • System Locales: ["en-US"]
  • Regional Preferences: ["de-CH"]
    Operating System
  • System Locales: ["en-US"]
  • Regional Preferences: ["de-CH"]

I am not sure if I misunderstand the documentation but the language portion is "en" for Firefox and the OS and then it should read the regional preferences from the OS but it doesn't by default.

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