Closed Bug 1406769 Opened 7 years ago Closed 7 years ago

Input time/date does not respect my locale

Categories

(Core :: Layout: Form Controls, defect)

defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 1337069

People

(Reporter: eldmannen+mozilla, Unassigned)

References

Details

input type=time is 12-h with AM/PM, I use 24-h "military time, hh:mm" without AM/PM. input type=date is with 07/07/2017 (dd/mm/yyyy) format, I use 2017-07-07 (yyyy-mm-dd) format.
Eldmannen, I have questions. - What's platform you use? - What UI language do you use? - What version do you use?
Flags: needinfo?(eldmannen+mozilla)
Blocks: 1366134
Linux and Windows 10. English. Nightly.
Flags: needinfo?(eldmannen+mozilla)
Thanks for reporting Eldmannen! If I understand correctly, you observe this bug on Windows 10, with Firefox Nightly in English (I assume en-US). What is your regional preferences locale in Windows?
I experience this both on Windows 10 and on Linux with Firefox nightly in English (yes, en-US). The system language on Linux and Windows are both English but the regional preferences locale is Swedish. $ locale LANG=en_US.UTF-8 LANGUAGE= LC_CTYPE="en_US.UTF-8" LC_NUMERIC=sv_SE.UTF-8 LC_TIME=sv_SE.UTF-8 LC_COLLATE="en_US.UTF-8" LC_MONETARY=sv_SE.UTF-8 LC_MESSAGES="en_US.UTF-8" LC_PAPER=sv_SE.UTF-8 LC_NAME=sv_SE.UTF-8 LC_ADDRESS=sv_SE.UTF-8 LC_TELEPHONE=sv_SE.UTF-8 LC_MEASUREMENT=sv_SE.UTF-8 LC_IDENTIFICATION=sv_SE.UTF-8 LC_ALL=
> The system language on Linux and Windows are both English but the regional preferences locale is Swedish. Ah, ok. That makes sense. We do not follow regional preferences locale if the language of it doesn't match Firefox locale. If you want to manually change that, go to about:config and switch `intl.regional_prefs.use_os_locales` to true. Please, let me know if that solves your issue.
Flags: needinfo?(eldmannen+mozilla)
Setting `intl.regional_prefs.use_os_locales` to true works on Windows 10. However it seem to have no effect on Linux. I also don't think I should have to mess with things in about:config for Firefox to respect my locale preferences.
Flags: needinfo?(eldmannen+mozilla)
> However it seem to have no effect on Linux. That's bug 1337069. I hope to tackle it in 58. > I also don't think I should have to mess with things in about:config for Firefox to respect my locale preferences. We do. You installed en-US software, you're by default using en-US localization of that software. Unfortunately, mixing software localization and internationalization has consistency consequences - see bug 1366134 for a length discussion if you care about details. If you install sv-SE Firefox, you'll by default get according regional preferences and we'll pick any customizations from your OS (currently works on Mac and Windows due to mentioned before bug 1337069). We also have bug 1379910 for adding the switch to Preferences view. We're accepting patches. I'm going to close this bug as a dupe of bug 1337069, since that's the clearest bug that is already reported and needs fixing out of the UX you described.
Status: UNCONFIRMED → RESOLVED
Closed: 7 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.