[Solved] Change date format without changing language on Linux?

3 years ago by Rikudou_Sage to c/firefox

Is it possible? I'd like my dates, time etc. to be displayed in the way I'm used to while keeping the browser in English. I've tried setting the LC_DATE environment variable as well, but it doesn't respect that.

Edit: Solved!

  1. go to about:config
  2. set intl.regional_prefs.use_os_locales to true
  3. restart firefox.
d_k_bo 10 points 3 years ago path: 0 2855590, hotness: undefined, score: 10, children: 3
anamethatisnt 2 points 3 years ago

And here's an explanation of the value as well as an explanation of why it is set to false by default:
https://firefox-source-docs.mozilla.org/...

Tl;dr:
Example: It might lead to a UI case like “Today is 24 października” in an English Firefox with Polish date formats.

path: 0 2855590 2858335, hotness: undefined, score: 2, children: 1
rikudou 1 point 3 years ago

I'm quite fine with that, but mostly I want dates on the web be in the format I'm used to. I'll read the article, thanks!

path: 0 2855590 2858335 2863803, hotness: undefined, score: 1, children: 0
rikudou 1 point 3 years ago

That did it, thank you!

path: 0 2855590 2860116, hotness: undefined, score: 1, children: 0
anamethatisnt 6 points 3 years ago

In GNOME it's as simple as shown in the image: Settings -> Region and Language:

path: 0 2849187, hotness: undefined, score: 6, children: 1
rikudou 4 points 3 years ago

I did the equivalent in Cinnamon, but Firefox doesn't respect that:

Screenshot of language settings

path: 0 2849187 2850782, hotness: undefined, score: 4, children: 0
bceuhwps 3 points 3 years ago

LC_TIME

path: 0 2849641, hotness: undefined, score: 3, children: 5
rikudou 2 points 3 years ago

Firefox doesn't seem to respect that, it's set correctly to cs_CZ.UTF-8.

path: 0 2849641 2850799, hotness: undefined, score: 2, children: 4
Successful_Try543 3 points 3 years ago

In Firefox about:preferences, there should be the option to use the language preferences specified by the OS.

path: 0 2849641 2850799 2851018, hotness: undefined, score: 3, children: 3
rikudou 2 points 3 years ago

Do you, by any chance, know which one?

path: 0 2849641 2850799 2851018 2851948, hotness: undefined, score: 2, children: 2
marv99 6 points 3 years ago

In my FF's about:config there is a setting called intl.regional_prefs.use_os_locales, defaulted to false. Maybe this can be used?

path: 0 2849641 2850799 2851018 2851948 2852889, hotness: undefined, score: 6, children: 1
Ashiette 1 point 3 years ago

In the firefox settings, you can change default language

path: 0 2853290, hotness: undefined, score: 1, children: 1
rikudou 1 point 3 years ago

Not a solution, as I said:

while keeping the browser in English

path: 0 2853290 2860001, hotness: undefined, score: 1, children: 0
firefox
firefox

@lemmy.ml

login for more options
23092
1240
373

/c/firefox

A place to discuss the news and latest developments on the open-source browser Firefox.


Rules

1. Adhere to the instance rules

2. Be kind to one another

3. Communicate in a civil manner


Reporting

If you would like to bring an issue to the moderators attention, please use the "Create Report" feature on the offending comment or post and it will be reviewed as time allows.


go to feed...