24 hour clock in Evolution

NoOp glgxg at sbcglobal.net
Tue Jul 15 02:14:46 UTC 2008

On 07/14/2008 12:39 PM, sktsee wrote:

> OK, I'm hesitant to post the following solution given the apparent
> fragility of the OP's system, but it might benefit some users whose
> systems are more robust and aren't prone to breaking just by setting one
> environment variable ;)
> "sudo update-locale LC_TIME=en_ZA.UTF-8" will globally set the LC_TIME
> environment variable for the system and not affect other LC_ environment
> variables. If the command is successful, /etc/default/locale should
> contain the following lines assuming the locale settings weren't
> previously altered:
> LANG=en_US.UTF-8
> User needs to logout after issuing the command, so that the shell picks
> up the change when user logs back in. (Variable isn't automatically
> exported). Use the locale command to confirm change after logout/login
> $locale
> LANG=en_US.UTF-8
> LC_CTYPE="en_US.UTF-8"
> LC_TIME=en_ZA.UTF-8   <---changed
> LC_PAPER="en_US.UTF-8"
> LC_NAME="en_US.UTF-8"
> I chose en_ZA.UTF-8 instead of en_DK.UTF-8 because it differed from his
> default locale (en_US.UTF-8) only in the absence of an am/pm format
> (defaulting to 24h format) and the date format which was d/m/y instead
> of m/d/y. OP had that format set in Nautilus, so I figured it is his
> preferred date format.

I just tried this on my test laptop and 'locale' does not show it.
However 'cat /etc/default/locale' does.

I then loaded Evo using a backup from one of the other machines with a
working Evo, and the email message list still shows am/pm. So I
logout/login and 'locale' does indeed now show LC_TIME=en_ZA.UTF-8 (note
current time is still working as US Pacific). Next try Evo, and lo and
behold the email message list is 24 hours w/Date: Wed, 9 Jul 2008
17:40:24 -0700 for one that I picked off of the list.

Cools stuff! As always, thanks sktsee!!

Note to Rick: hang on a day or so & I'll leave this setting on the test
machine to see if it has any ill/odd effects on any other applications.
I doubt that it will, but given your system keyboard/language issues
etc., it's probably better if you let me check it out first... unless of
course you're willing to give it a try before then.

Thanks again sktsee.


More information about the ubuntu-users mailing list