Currently Thunderbird displays time in AM/PM mode.
How can I change it to 24h mode?
$ locale |grep LC_TIME LC_TIME="en_US.UTF-8"
Ok, solved it:
1) Make sure you have the locale you need, can't say which you specifically need but when you know you create it like this (using en_DK.utf8)
2) To make sure this locale is in effect for thunderbird you add it to the script that starts thunderbird, so first find that script:
2a) find the right script
In my case: /usr/bin/thunderbird
2b) add locale to the script (I use the editor geany):
Add this in the beginning of the script (I just put at the very beginning):
Just want to add this:
EDIT: as pointed out by pl1nk A better solution would be to NOT touch the /usr/bin/thunderbird script and instead create the script '/usr/local/bin/thunderbird' with this content
make sure it's executable
Then check if it's being used to start thunderbird:
should respond with this:
Now thunderbird can be started as before.
Fsando's answer works, but LC_ALL will change the entire locale (date, number, currency format, etc) used by Thunderbird instead of just the time format, which is all that's asked for in the question. Not only that, but I don't like creating extra scripts if I don't have to. Here's what I did:
Next time you open Thunderbird from your launcher, it should use the new time format.
And as a bonus, the change shouldn't get overwritten when the thunderbird package gets updated, because it won't touch your local launcher file.
Note: As Sparhawk mentions, LC_TIME will change date format as well as time format. However, you can find a locale with the same date format and different time format, and thereby change only the time format.
For example, this is what the
If we change the locale to
I run my system as en_US.UTF-8 too, just in case....
I just added
3) Save and restart OS.