Bug 393956 - Digital Clock widget add custom time format
Summary: Digital Clock widget add custom time format
Status: CONFIRMED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Digital Clock (show other bugs)
Version: master
Platform: Other Linux
: NOR wishlist
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-05-07 14:14 UTC by Ivar Erikson
Modified: 2024-04-26 12:29 UTC (History)
11 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ivar Erikson 2018-05-07 14:14:03 UTC
The Digital Clock widget formatting option isn't present any more.

Missing field/dialogue to set custom [time + date] formats. (e.g. ddd dd. MMM hh:mm)

This was previously available (KDE4?), and is quite a basic feature most users would expect to find available to put in e.g. their panels.
Comment 1 Aaron Wolf 2020-10-13 18:06:47 UTC
The digital clock's date listing is now completely customizable.

> Git commit 235fa8107dabb757d88cd1876309c12cad990207 by Chris Holland.
> Committed on 14/01/2019 at 01:53.
> Pushed by cholland into branch 'master'.
> 
> [Digital Clock] Add ability to set a custom date format string
> 
> Adds a new customDateFormat config key which is used when the dateFormat
> "StringEnum" is set to custom.
> Shows a link to the Qt time formatting documentation next to the text field.
> Qt doc link and text field are hidden when not set to custom date format.
> 
> Differential Revision: https://phabricator.kde.org/D18019
> 
> M  +5    -1    applets/digital-clock/package/contents/config/main.xml
> M  +8    -6    applets/digital-clock/package/contents/ui/DigitalClock.qml
> M  +26   -0    applets/digital-clock/package/contents/ui/configAppearance.qml
> 
> https://commits.kde.org/plasma-workspace/
> 235fa8107dabb757d88cd1876309c12cad990207

mentioned in https://bugs.kde.org/show_bug.cgi?id=340982#c155

And I can confirm customizing of the date.

However, the *time* lacks the comparable field and functions to specify custom time format.

(In my case, I want 12-hour time *without* showing the AM/PM part (particularly because I have a left-side panel and much less room for the numbers, so it's too small with the AM/PM shown.)
Comment 2 Justin Zobel 2021-06-13 12:08:39 UTC
This is currently possible. Please reopen if I am mistaken.
Comment 3 Aaron Wolf 2021-06-13 15:45:15 UTC
This is NOT resolved. I'm on the latest KDE Neon user edition. The *date* is fully customizable. The *time* has 3 options: 12-hour, 24-hour, follow-region-setting. None of these are customizable. So, I can't choose to see 12-hour numbers but leave out the AM/PM part (which takes up too much space, and I know whether it is morning or afternoon, I don't need that AM/PM indication!)
Comment 4 Aaron Wolf 2021-06-13 15:49:02 UTC
To be specific in terms of format, I personally (and I think many others would also) prefer h:mm while still using 12-hour numbers. I don't want the AP or ap part.
Comment 5 Justin Zobel 2021-06-14 00:39:21 UTC
Ah my apologies, it's the date format that is fully customisable. I
guess that just needs to be extended to the time format so that both
can be set however the user wants.

On Mon, Jun 14, 2021 at 1:19 AM Aaron Wolf <bugzilla_noreply@kde.org> wrote:
>
> https://bugs.kde.org/show_bug.cgi?id=393956
>
> --- Comment #4 from Aaron Wolf <wolftune@gmail.com> ---
> To be specific in terms of format, I personally (and I think many others would
> also) prefer h:mm while still using 12-hour numbers. I don't want the AP or ap
> part.
>
> --
> You are receiving this mail because:
> You are on the CC list for the bug.
Comment 6 Dave92f1 2023-05-19 23:08:19 UTC
... and I'd like to see seconds in the widget (hh:mm:ss). This should be customizable. Somehow.
Comment 7 ezh 2024-04-07 20:01:15 UTC
I believe this is fixed now. There is an option in KDE 6.x:

Show seconds: 
Never
Only in the tooltip
Always
Comment 8 Aaron Wolf 2024-04-07 22:46:07 UTC
(In reply to ezh from comment #7)
> I believe this is fixed now. There is an option in KDE 6.x:
> 
> Show seconds: 
> Never
> Only in the tooltip
> Always

That's not even new. Showing seconds is not the sole purpose of custom time format for the clock. I want to hide the AM/PM part myself because I put my panel on the side, and I don't need to be reminded whether it is evening or morning, and I don't want 24hr.

Custom format should work just the same as it already does for DATE: A field where the standard format codes can just be entered so people can decide what the clock display should be. Again, the same exact Digital Clock tool already has an open field for custom date, overriding the format for the system otherwise and just deciding for the clock widget. There's no reason to have the time format not have the exact same flexibility.