MX 23.5 install - 24-hour time/clock format does not get set in Greeter and Conky  [Solved]

Report Bugs, Issues and non- package Requests
Message
Author
needto
Posts: 6
Joined: Sat Feb 01, 2025 11:16 pm

MX 23.5 install - 24-hour time/clock format does not get set in Greeter and Conky

#1 Post by needto »

This is a minor/cosmetic issue which probably deserves a Bug because it's the "first impression" type of thing.

MX install asks what time format you want - 12-hour AM/PM or 24-hour. I selected the 24-hour format, and, after a post-install reboot, when it got to the Greeter login screen (LightDM GTK+ if I'm not mistaken), the panel at the top was showing time in the 12-hour format.
I logged in and saw that the default Conky also was set to the 12-hour format.

Workarounds to make changes to switch to the 24-hour format:

In the Greeter UI utility (Applications Menu->Settings->LightDM GTK+) on the "Panel" tab in the "Clock format" field changed

Code: Select all

%c
to

Code: Select all

%a %d %b, %Y  %H:%M:%S %Z
To change Conky to the 24-hour clock, used the steps in this great post viewtopic.php?p=792705#p792705 by Stuart_M

User avatar
fehlix
Developer
Posts: 12702
Joined: Wed Apr 11, 2018 5:09 pm

Re: MX 23.5 install - 24-hour time/clock format does not get set in Greeter and Conky

#2 Post by fehlix »

needto wrote: Mon Feb 03, 2025 3:13 am This is a minor/cosmetic issue which probably deserves a Bug because it's the "first impression" type of thing.

MX install asks what time format you want - 12-hour AM/PM or 24-hour. I selected the 24-hour format, and, after a post-install reboot, when it got to the Greeter login screen (LightDM GTK+ if I'm not mistaken), the panel at the top was showing time in the 12-hour format.
I logged in and saw that the default Conky also was set to the 12-hour format.

Workarounds to make changes to switch to the 24-hour format:

In the Greeter UI utility (Applications Menu->Settings->LightDM GTK+) on the "Panel" tab in the "Clock format" field changed

Code: Select all

%c
to

Code: Select all

%a %d %b, %Y  %H:%M:%S %Z
To change Conky to the 24-hour clock, used the steps in this great post viewtopic.php?p=792705#p792705 by Stuart_M
The conky 12h display for English lang/locale can be changed by selecting LC_TIME with "MX Locale" to the 24h "en_IE.UTF-8",
which would make not only the default conky display 24h but most of the MX provided conky's which do display the clock.
But you are right, selecting 24h within the installer where the language/locale is normaly 12h, would not change in all places to 24h,
but only some places I think that just the taskbar/panel clock which get changed.

needto
Posts: 6
Joined: Sat Feb 01, 2025 11:16 pm

Re: MX 23.5 install - 24-hour time/clock format does not get set in Greeter and Conky

#3 Post by needto »

Thank you, fehlix! Setting LC_TIME in the "MX Locale" UI utility to the Irish "en_IE.UTF-8" (Locale Categories tab->Time) has updated the "locale" file

Code: Select all

$ cat /etc/default/locale 
#  File generated by update-locale
LANG=en_US.UTF-8
LC_TIME=en_IE.UTF-8
and resolved the 24-hour format problems.
The time/date/ format in the LightDM GTK+ Greeter set to "%c %Z" now shows time in the 24-hour format in the Greeter panel, and Conky, without any tweaking, also shows 24-hour format.

needto
Posts: 6
Joined: Sat Feb 01, 2025 11:16 pm

Re: MX 23.5 install - 24-hour time/clock format does not get set in Greeter and Conky

#4 Post by needto »

"LC_TIME=en_IE.UTF-8" leads to globally showing dates as dd/mm/yyyy instead of mm/dd/yyyy so I went back to the workaround shown in my original post.

User avatar
fehlix
Developer
Posts: 12702
Joined: Wed Apr 11, 2018 5:09 pm

Re: MX 23.5 install - 24-hour time/clock format does not get set in Greeter and Conky  [Solved]

#5 Post by fehlix »

needto wrote: Wed Feb 05, 2025 11:20 am "LC_TIME=en_IE.UTF-8" leads to globally showing dates as dd/mm/yyyy instead of mm/dd/yyyy so I went back to the workaround shown in my original post.
Would you mind trying to set LC_TIME to C.UTF-8, and let us know if that would work for both date and time??

needto
Posts: 6
Joined: Sat Feb 01, 2025 11:16 pm

Re: MX 23.5 install - 24-hour time/clock format does not get set in Greeter and Conky

#6 Post by needto »

fehlix wrote: Wed Feb 05, 2025 12:29 pm
needto wrote: Wed Feb 05, 2025 11:20 am "LC_TIME=en_IE.UTF-8" leads to globally showing dates as dd/mm/yyyy instead of mm/dd/yyyy so I went back to the workaround shown in my original post.
Would you mind trying to set LC_TIME to C.UTF-8, and let us know if that would work for both date and time??
Thank you, fehlix!

Code: Select all

$ cat /etc/default/locale 
#  File generated by update-locale
LANG=en_US.UTF-8
LC_TIME=C.UTF-8
It now looks good showing 24-hour format in the Greeter panel and in Conky with LANG set to en_US.UTF-8 and LC_TIME set to use C.UTF-8.
In the Greeter, %c does not show time zone but it's OK with me.

Post Reply

Return to “Bugs and Non-Package Requests Forum”