Bug 3001 - Respect locale LC_TIME to format date in message list
Summary: Respect locale LC_TIME to format date in message list
Status: RESOLVED INVALID
Alias: None
Product: Claws Mail (GTK 2)
Classification: Unclassified
Component: UI/Message List (show other bugs)
Version: other
Hardware: PC Linux
: P3 minor
Assignee: users
URL:
Depends on:
Blocks:
 
Reported: 2013-09-11 22:07 UTC by marius glauser
Modified: 2019-05-10 12:36 UTC (History)
0 users

See Also:


Attachments

Description marius glauser 2013-09-11 22:07:04 UTC
The date and time format in the "Date" column in the message list is "%x(%a) %H:%M" per default (date_format in clawsrc). The format presumably changes if claws is started with (locale) environment variable LANG or LC_MESSAGES (or others?) set to something different than en_*. And then stays that way even when the environment variable changes back. (Not sure if I got that really right here.)

Right now I can only do the following two things to change the date/time format:

- Start claws with LANG=de_CH.UTF-8 once. After that date_format is in the right format ("%a, %d.%m.%Y %H:%M" in my case)
- Edit the format in the preferences manually.

One problem persists though. The abbreviations of the week days (%a) are in english instead of german.

In my opinion the date format should respect locale LC_TIME and not the general language. I usually have set LANG to something different than LC_TIME.

I briefly scanned the code but could not find where to make these changes so I hope someone else can point me to it.
Comment 1 Andrej Kacian 2019-05-10 12:36:13 UTC
Just set "%c" (The  preferred  date  and  time  representation  for the current locale.) as your date_format in Claws Mail, and message list will always use the locale's preferred format.

Sorry for the late answer.

Note You need to log in before you can comment on or make changes to this bug.