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

bwclk & bwclklite: Support 12-hour time format. #3726

Merged
merged 1 commit into from
Feb 3, 2025

Conversation

randyheydon
Copy link
Contributor

This modifies how the time string is generated so it respects the system's locale settings, specifically for 12-hour time. This is done with the locale package, which also simplifies some of the string handling since the package creates a complete time string. Note this does not add any display of AM/PM, but neither do any other clock faces.

This modifies how the time string is generated so it respects the system's
locale settings, specifically for 12-hour time.  This is done with the
locale package, which also simplifies some of the string handling since the
package creates a complete time string.  Note this does not add any display of
AM/PM, but neither do any other clock faces.
@thyttan
Copy link
Collaborator

thyttan commented Feb 2, 2025

This makes sense - thanks! I take it you tested both apps with this change and they worked? After you answer this I can merge.

@randyheydon
Copy link
Contributor Author

randyheydon commented Feb 2, 2025

Yes, of course. I installed both, confirmed both will show 12- and 24-hour time, and confirmed both respect the "Hide Colon" setting. I'm now using bwclk as my daily driver and haven't run into any issues.

If you or anyone else wants to test it before it's merged, I switched my Github Pages to pull from this branch, so you can get it at https://randyheydon.github.io/BangleApps/?q=bwclk.

@thyttan thyttan merged commit acb96b5 into espruino:master Feb 3, 2025
1 check passed
@thyttan
Copy link
Collaborator

thyttan commented Feb 3, 2025

Thank you once again! 🚀🌸

@randyheydon randyheydon deleted the bwclk12 branch February 4, 2025 01:35
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

Successfully merging this pull request may close these issues.

2 participants