Skip to content

Enhancement Request: Change OSD Clock Format from 24 Hour to 12 Hour #990

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

Open
bawitdaba opened this issue May 31, 2025 · 2 comments
Open

Comments

@bawitdaba
Copy link

strftime(str + strlen(str), sizeof(str) - 1 - strlen(str), "%b %d %a%H:%M:%S", &tm);

Hello,

Would it be possible for the above line to be changed to
strftime(str + strlen(str), sizeof(str) - 1 - strlen(str), "%b %d %I:%M:%S %p", &tm);
or
strftime(str + strlen(str), sizeof(str) - 1 - strlen(str), "%b %d %r", &tm);

This drops %a Abbreviated weekday name in favor of a 12 Hour clock with AM/PM. If the Abbreviated weekday name is more important the %S seconds could be dropped instead.

Perhaps this format string could even be an ini setting?

Thanks

@sorgelig
Copy link
Member

sorgelig commented Jun 2, 2025

I will think about it. As you see it comes with compromise.
(great, i don't need to deal with length units :) )

@littlegamer87
Copy link

Please don't change to 12hr globally. The majority of the world uses 24hr. An option for 12hr is reasonable, like most devices. A nice idea is to also update the timezone script to toggle it automatically.

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

No branches or pull requests

3 participants