Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bug] cosmic-greeter ignores 24 hour time setting #150

Open
Kartonrealista opened this issue Oct 25, 2024 · 6 comments
Open

[bug] cosmic-greeter ignores 24 hour time setting #150

Kartonrealista opened this issue Oct 25, 2024 · 6 comments

Comments

@Kartonrealista
Copy link

Maybe I'm misremembering, but I think this used to work. Now it always uses 12 hour time.

@joshuamegnauth54
Copy link
Contributor

Do you have military time enabled in your user config? It used to default to military time only, but now it loads the clock preference from the user's config.

From my test system:

military

@Kartonrealista
Copy link
Author

Do you have military time enabled in your user config? It used to default to military time only, but now it loads the clock preference from the user's config.

It happens only on startup, if you reach the lock screen from suspend, logout or any other means it works correctly.

@Nashenas88
Copy link

I have the opposite issue. Mine always shows 24-hour time even when I have region and language configured to 12-hour time.

@joshuamegnauth54
Copy link
Contributor

@Kartonrealista Sorry I missed the notification for this. Do the logs have any useful information, like failing to load the config? Also, is there any other weirdness - like using the wrong background? Finally, if you have more than one account, do those work?

@Nashenas88 That makes this even more puzzling. I'll try making more user accounts to see if I can replicate.

@Brandon168
Copy link

I have the opposite problem, I have Cosmic alpha 6 set to 12 hour time but the cosmic greater is stuck on 24h. I can't figure out how to change it.

@Brandon168
Copy link

Brandon168 commented Feb 23, 2025

I still thing this is a bug, since it's not respecting the locale settings found in cosmic settings, but I did find a way to change this to 12H in the meantime.

I added this line to /etc/greetd/config.toml and it switched from 24H to 12H for me after logging out.
time_format = "%I:%M %p"

I hope this work around helps someone.

Update:
This work around only works if logged out. If logged in but locked, it's reverting to 24H. If I log out, it goes to 12H. Strange.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants