Logic for determining the date/time format
In my quest to display my messages with the ISO date format (yyyy-mm-dd), I determined that I needed to set a locale that would have the date format I desired, whether an existing locale or creating a custom locale.
I had read that the en_DK locale might provide what I wanted, and a quick call to LC_TIME=en_DK date +'%x'
verified that it output the ISO-standard format. However, starting Thunderbird (LC_TIME=en_DK.UTF-8 gtk-launch thunderbird
), Thunderbird displayed dates for my messages in a different format. But, when I started Thunderbird with the sv_SE locale (LC_TIME=sv_SE.UTF-8 gtk-launch thunderbird
), Thunderbird did display the dates in the ISO format. Where does Thunderbird retrieve its date format, and why does it differ from date +'%x'
?
Geändert am
Alle Antworten (2)
Try checking the setting in Edit > preferences > advanced > general.
Matt said
Try checking the setting in Edit > preferences > advanced > general.
You mean the Date and Time Formatting setting, with the options to choose between Application locale and Regional settings locale?
That setting did switch locales upon restart, but using the en_DK locale, Thunderbird still formatted the date differently than LC_TIME=en_DK date +'%x'
.