Customising Thunderbird’s date format on Unix and Linux.

I use Mozilla Thunderbird as my mail client at work on Solaris 10. One of the annoying things with Thunderbird is the fact that it relies on the current locale setting to format the date and times on emails. As a result changing the date format is a bit of a pain in the arse.
Normally, my locale is either set to C or en_GB and as a result, my dates are formatted either as “08/31/05 13:10:23” (%m/%d/%y %H:%M:%S) or “31/08/05 1:10pm” (%d/%m/%y %r). Now I’m a bit fussy and prefer my dates to be in the UK format, but my times in the American (C) 24 hour format.
Today, I finally got round to sorting it out… I ran the following oneliner to iterate through all the available installed locales and print off their date and time format:
do
echo “$x”
LC_ALL=$x locale -k d_fmt t_fmt
echo “===”
done > ~/tmp/datefmts.out
$
This printed out all the locales and the date and time formats used for each locale and bunged them into a file. A quick squiz through the file revealed just the formatting I want:
===
ca
d_fmt="%d/%m/%y"
t_fmt="%H:%M:%S"
===
So, now I start Thunderbird using “$ LC_ALL=ca /usr/local/bin/thunderbird &” and I get my desired format.
2 Responses to “HOWTO: Customise Thunderbird Date Format”
Speak Your Mind 
Search
Related Entries
- Thunderbird May Be Set Free
- GMail via IMAP So Far
- Improve Thunderbird Filters
- HOWTO: Disable Timeout Alert in Lightning/WCAP Extension
- HOWTO: Prevent Sendmail From Using DNS
- Links for 3 August 2007
- Compiling GAIM 2 / Pidgin On Solaris 10
- Migrating from iPhoto to iView Media Pro
- My Answers to Outstanding OpenSolaris Questions
- Links for 25 April 2007 - 5 May 2007


Thank you! I was going mad with Thunderbird ignoring KDE’s date preference. Like you, I needed 24 hour time, the proper year-month-day order, and dashes instead of slashes.
Hi, I was dealing with this incorrect data format in Thunderbird as well. It was ‘hard set’ to an american format mm-dd-yyyy but I am using a dd-mm-yyyy format. I tried to apply a lot of solutions found on the internet but no luck. The only one working fine for me is here:
http://ubuntuforums.org/showthread.php?t=595982