FR: 12 Hour Clock?
@NiLuJe is already working on this.
Since Jul 8, 2025.
Assessment
This issue has not been assessed yet.
Description
Could the clock on the USBMS screen display 12 hour time when ["twelve_hour_clock"] = true is set in koreader settings?
USBMS has an example of how to read settings:
And the clock formatting code, currently:
https://github.com/koreader/KoboUSBMS/blob/726f5efe8036e2dda2111114fc0e9c21202a0959/usbms.c#L716
...could conditionally display 12/24 hour clock something like:
if (twelve_hour_clock) {
strftime(sz_time, sizeof(sz_time), "%I:%M %p", lt);
} else {
strftime(sz_time, sizeof(sz_time), "%H:%M", lt);
}
I'd offer a PR, but I don't have a build environ to test in, and how to implement reading the setting could go a couple different ways.
- Dominant language
- C
- Stars
- 25
- Forks
- 7
- PR merge metrics
- No merged PRs in 30d
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from koreader/KoboUSBMS
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 30/100
-
Difficulty 4/5 3-5 days Newbie friendliness 68/100
All issues in koreader/KoboUSBMS
Similar issues
-
Difficulty 1/5 1-3 hours Newbie friendliness 85/100
lem-project/lem#2525 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
jaff-chemistry/jaff#231 ·
-
CF_CFDP_S_SendFileData computes the file checksum from the SB buffer after CFE_SB_TransmitBufferOpen
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
needs triage
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
389ds/389-ds-base#8251 ·
Maintainers usually reply within 1 day
-
ColumnDecimal::Append(Int128) stores a value outside the Decimal(P, S) range with no error: cut to 32/64 bits, or with too many digitsPossibly taken @RUSHIT305 claimed this today. Openbug data-types
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
ClickHouse/clickhouse-cpp#645 · 1 comment ·
Maintainers usually reply within 1 day