PDA

View Full Version : [ubuntu] How Can I Customize LC_TIME?



klausner
December 2nd, 2010, 11:06 PM
I'm having a problem with the way that Thunderbird displays time values. Specifically, I want to use a 24-hour format, i.e. %H.%M.%S. This is the format I have all the rest of the desktop using.

It's been suggested that TB is referencing LC_TIME to set the format, but since my LC_TIME is using the en_US.UTF-8 package, it shows AM and PM on the times.

Tried doing export LC_TIME="%H.%M.%S", but it doesn't work. export LC_TIME="C" just sets things to en_US.UTF-8.

I'm sure there is a way to customize the LC_TIME variable, I just don't know how to do it.

klausner
December 22nd, 2010, 02:43 AM
Bump.

ecormier
May 6th, 2011, 10:45 PM
Just find a locale that supports 24 hour time and replace the following "en_US" with it

I was running Sunbird in and it defaulted to 24-mode, so I did the following to get it to 12-hour mode;
if you want to set it permanently:

export LC_TIME="en_US"
or if you want to change it for only one application:

LC_TIME="en_US" sunbird