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

Status bar displays time in 12 or 24 hour format based on settings #821

Merged
merged 1 commit into from
Feb 13, 2022

Conversation

mruss77
Copy link
Contributor

@mruss77 mruss77 commented Nov 11, 2021

This makes the status bar display time in the correct format per the "Time format" setting.

New function is added to DateTime called FormattedTime returns a string with the correct time format, so the caller doesn't need to check the settings directly.

I had to remove one unused include from Settings.h to avoid circular include problems.

This is a scaled-back version of #786 (per @Riksu9000 's suggestion) to fix the time display while thinking about how to handle other changes to the status bar.

@Itai-Nelken
Copy link
Contributor

Works nicely. This is a great improvement.

@Riksu9000 Riksu9000 linked an issue Jan 12, 2022 that may be closed by this pull request
1 task
@JF002 JF002 merged commit 87d882b into InfiniTimeOrg:develop Feb 13, 2022
@JF002 JF002 added this to the 1.9.0 milestone Feb 13, 2022
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.

Status bar shows wrong time format
4 participants