You are not logged in.

#1 2022-09-02 17:52:12

memomo
Member
Registered: 2022-09-02
Posts: 3

Programs using 24 hour time despite locale settings

I am using BSPWM

I've noticed this in the GTK file picker, Thunderbird, and the Steam overlay.

My output of the locale command is

LANG=en_US.UTF-8
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=

And I've tried running each program with the LC_ALL variable set to "en_US.UTF-8" with no difference.

Any suggestions?
Thanks.

EDIT: I think this affects all GTK programs but not QT.

I was able to manually change the time format in thunderbird by following this https://support.mozilla.org/en-US/kb/cu … hunderbird and changing intl.date_time.pattern_override.time_short to the string h:mm a, but I'd prefer a more concrete solution.

dconf write /org/gtk/settings/file-chooser/clock-format "'12h'" fixed the time format for the GTK file picker.

Last edited by memomo (2022-09-05 17:07:10)

Offline

#2 2022-09-02 18:12:28

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,729

Re: Programs using 24 hour time despite locale settings

Using kde/plasma by any chance? It likes to screw with locales, there's a section in the wiki about it.

Offline

#3 2022-09-02 18:19:30

memomo
Member
Registered: 2022-09-02
Posts: 3

Re: Programs using 24 hour time despite locale settings

Scimmia wrote:

Using kde/plasma by any chance? It likes to screw with locales, there's a section in the wiki about it.

Forgot to mention I’m using BSPWM

Offline

#4 2022-09-02 21:08:29

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,486

Re: Programs using 24 hour time despite locale settings

For the file picker, try

dconf write /org/gtk/settings/file-chooser/clock-format "'12h'"

(Google found me https://github.com/linuxmint/gtk/blob/m … schema.xml and I tested it on zenity)

I've no idea about the rest, sorry.

Offline

#5 2022-09-05 17:05:40

memomo
Member
Registered: 2022-09-02
Posts: 3

Re: Programs using 24 hour time despite locale settings

Thanks that worked for the file picker.

I've also noticed that this seems to only be happening to GTK programs and not QT if that helps narrow down the issue.

Offline

#6 2022-09-05 19:33:06

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,486

Re: Programs using 24 hour time despite locale settings

Have you seen https://bugzilla.mozilla.org/show_bug.c … 26907#c151 ?
Doesn't seem to be the toolkit, because that's a pretty unique way to ignore the standard system configuration…

Offline

Board footer

Powered by FluxBB