Bug 507156 - Add option to remove PM and AM from digital clock widget
Summary: Add option to remove PM and AM from digital clock widget
Status: CONFIRMED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Digital Clock widget (other bugs)
Version First Reported In: 6.4.2
Platform: Arch Linux Linux
: NOR wishlist
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-07-17 13:54 UTC by Sauf
Modified: 2025-10-12 02:33 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sauf 2025-07-17 13:54:57 UTC
SUMMARY
It would be nice to add option or remove PM and AM in 12-hour mode from digital clock widget. This practiced in phone UIs. It will save space.

OBSERVED RESULT
e.g. 10:09 PM

EXPECTED RESULT
e.g. 10:09

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 6.4.2
KDE Frameworks Version: 6.15.0
Qt Version: 6.9.1
Graphics Platform: Wayland
Comment 1 David Edmundson 2025-07-18 08:16:30 UTC
You can.

See setting "Time Display"
Comment 2 Sauf 2025-07-18 11:24:18 UTC
(In reply to David Edmundson from comment #1)
> You can.
> 
> See setting "Time Display"

Thanks for reply. you can't do in 12-hour mode. in prior example observed result is either 22:09 or 10:09 PM.
Comment 3 TraceyC 2025-08-05 16:38:34 UTC
Confirmed that with 12H time format, it's not possible to hide AM/PM without changing the regional settings. It would be more convenient for this use case to have a toggle in the Digital Clock settings.
Comment 4 Johnd321 2025-10-12 02:33:17 UTC
I'm using Lubuntu(LXQT), but maybe the same solution can be applied here?
If the Supported HTML Subset:  https://doc.qt.io/qt-6/richtext-html-subset.html   is allowed as part of the formatting, the tags can be used in an unintended way, to hide the expression results.
For example I use the string <'h2' a>h:mm  -- where the header tag merely boldens/enlarges the font. Other elements could be used as well.
The attribute a, is recognized as the am/pm trigger and successfully adjusts the hour value, but ignores the am/pm display since it's a meaningless attribute.