How to customize locale?

Asked by Alex Mauer

How can I change the settings of my locale?

In my case, I wish to use en_US.UTF-8 for most things, except I want to use ISO date format w/ 24-hour time.

From reading the man page of locale, it implies that I need to set the environment variable LC_TIME (presumably in /etc/environment) -- but what do I set it to? Do I need to find a country that uses that date format and time and say I'm using that? What if there's no country that uses my preferred date/time format?

Question information

English Edit question
Ubuntu Edit question
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Benoit Malet (benoit-malet) said :

Hello !

You have to set your LC_TIME to something matching this pattern:

So, you'll have to find a country that uses the date format you want.
(this page can be usefull:

The change can be made locally (export LC_TIME=be_FR, for me) or in /etc/env.d (if I remember well ... I'm not in front of my Ubuntu box)

Hope this helps !


Revision history for this message
Nicolò Chieffo (yelo3) said :

And what about currency and decimal separator? What should I do for them?

Can you help with this problem?

Provide an answer of your own, or ask Alex Mauer for more information if necessary.

To post a message you must log in.