Bug 395048

Summary: Digital Clock Widget does not follow specific formats set in Detailed Settings
Product: [Plasma] plasmashell Reporter: martijn.saelens
Component: Digital Clock widgetAssignee: Plasma Bugs List <plasma-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: kde, nate, plasma-bugs-null, scott
Priority: NOR    
Version First Reported In: 5.12.5   
Target Milestone: 1.0   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Screenshot of settings and clock

Description martijn.saelens 2018-06-05 08:51:51 UTC
Created attachment 113088 [details]
Screenshot of settings and clock

In the "Numeric, Currency and Time Formats" section of System Settings have I set the following options:

Region: United States - American English (en_US)

[checked] Detailed Settings

Numbers: No Change
Time: België - Nederlands (nl_BE)
Currency: België - Nederlands (nl_BE)
Measurement Units: België - Nederlands (nl_BE)
Collation and Sorting: No Change

Although the digital clock should show time as for example 22:24 according to nl_BE, it keeps using the AM/PM style. Dates are also shown as MM/DD/YY instead of the expected DD/MM/YY according to nl_BE. This occurs persistently (even after reboot).

Screenshot in the attachment.

It seems this bug exists for quite some time: https://bugs.kde.org/show_bug.cgi?id=326861

Thanks in advance for the time and effort,
With kind regards,

Martijn
Comment 1 Scott Harvey 2018-06-10 17:26:01 UTC
I can partially confirm this. I set all my formats to the same as you. My digital clock gets the date right - 10/06/18 - but the 12h/24h time is wrong. Wrong, but fixable. 

Right-click the digital clock widget and choose "Digital Clock Settings", then look at the "Appearance" tab.

The 12h/24h clock display is being controlled by the "Use 24-hour Clock" checkbox. The checkbox doesn't "obey" the locale setting. If you tick the box, you'll get times like 16:07 instead of 04:07PM.

I'll have a look at the code and see if I can resolve this.
Comment 2 Nate Graham 2023-04-10 00:59:49 UTC
Cannot reproduce in Plasma 5.27.4. I suspect this may have been fixed in 5.26 with the big formats KCM overhaul. Can you folks reproduce the issue in Plasma 5.27.4?
Comment 3 martijn.saelens 2023-04-12 09:23:00 UTC
(In reply to Nate Graham from comment #2)
> Cannot reproduce in Plasma 5.27.4. I suspect this may have been fixed in
> 5.26 with the big formats KCM overhaul. Can you folks reproduce the issue in
> Plasma 5.27.4?

This bug doesn't exist anymore: changed my time settings to AM/PM and back and the clock widget updates accordingly. This issue may be closed.