You are not logged in.

#1 Yesterday 19:29:46

Cooleech
Member
From: Solin, Croatia
Registered: 2015-01-23
Posts: 35

Plasma Login Manager refuses to show 24-hour time

Hi all,
I have few installations of Arch with KDE Plasma few on real hardware and few VMs, all installed using the same install script (my own). Only one of those installations has a problem where the clock on the PLM shows AM/PM clock (12-hour time) while other installs show correct 24-hour time. I've checked regional settings and they're all the same. Only difference I could find is locale.conf which I modified on one of the installs to be simpler.

Good locale.conf(s):

LANG=hr_HR.UTF-8
LC_MESSAGES=en_US.UTF-8
LC_NUMERIC=hr_HR.UTF-8
LC_TIME=hr_HR.UTF-8
LC_MONETARY=hr_HR.UTF-8
LC_PAPER=hr_HR.UTF-8
LC_MEASUREMENT=hr_HR.UTF-8

"Bad" locale.conf:

LANG=en_US.UTF-8
LC_ALL=hr_HR.UTF-8

I could try changing locale.conf to the same settings as on other installs, but that problematic one is out my reach for a few days.
Could that be the reason PLM shows "wrong" clock? That doesn't make too much sense to me. Is there some plasmalogin.conf setting to fix displayed clock or just revert locale.conf settings?

Offline

#2 Yesterday 20:00:13

stanczew
Member
Registered: 2021-03-02
Posts: 108

Re: Plasma Login Manager refuses to show 24-hour time

LC_ALL is not a "simpler version" of all the other LC variables.

https://wiki.archlinux.org/title/Locale … leshooting

LC_ALL is the only LC_* variable which cannot be set in locale.conf files: it is meant to be used only for testing or troubleshooting purposes, for example in /etc/profile.

https://man.archlinux.org/man/locale.conf.5#OPTIONS

Note that LC_ALL may not be configured in this file.

Offline

#3 Yesterday 20:14:28

Cooleech
Member
From: Solin, Croatia
Registered: 2015-01-23
Posts: 35

Re: Plasma Login Manager refuses to show 24-hour time

Oh, I see. I've made a new VM to check those settings and I can see that LANG and LC_MESSAGES are really the only thing I need to set in locale.conf.
But that still doesn't affect PLM clock. How can I fix that one?

Last edited by Cooleech (Yesterday 20:44:03)

Offline

#4 Yesterday 20:48:57

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 14,826

Re: Plasma Login Manager refuses to show 24-hour time

Try setting LC_TIME also.


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#5 Yesterday 20:56:01

Cooleech
Member
From: Solin, Croatia
Registered: 2015-01-23
Posts: 35

Re: Plasma Login Manager refuses to show 24-hour time

Lone_Wolf wrote:

Try setting LC_TIME also.

I can do that on monday, but it's strange that any other install doesn't need that and PLM shows correct 24-hour clock.
I'll report back results once I check that one out.
Thank you all for your answers! smile

Offline

Board footer

Powered by FluxBB