Bug 434518 - System clock doesn't take times above 12:00
Summary: System clock doesn't take times above 12:00
Status: RESOLVED NOT A BUG
Alias: None
Product: systemsettings
Classification: Applications
Component: kcm_clock (show other bugs)
Version: 5.20.5
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Paul Campbell
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-03-16 23:26 UTC by David
Modified: 2021-03-18 23:48 UTC (History)
2 users (show)

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


Attachments
format_settings (70.57 KB, image/png)
2021-03-18 21:28 UTC, David
Details
clock_widget_settings (84.06 KB, image/png)
2021-03-18 23:29 UTC, David
Details

Note You need to log in before you can comment on or make changes to this bug.
Description David 2021-03-16 23:26:46 UTC
SUMMARY
If I try to set the time for the system clock, it will not let me put something like 20:00 (will not let me enter a two digit hour), instead forcing me to write "8:00 pm". It should let me write "20:00" and auto-translate it to the corresponding format shown in the configuration.

STEPS TO REPRODUCE
1. Right click the system clock, select "Adjust Date and Time"
2. Try setting the clock to 20:00

OBSERVED RESULT
Doesn't let me write the second digit

EXPECTED RESULT
Should let me write 20:00 and then readjust it.

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 5.20.5
KDE Frameworks Version: 5.78.0
Qt Version: 5.15.2

ADDITIONAL INFORMATION
Comment 1 Nate Graham 2021-03-18 16:51:25 UTC
Works for me. I have to delete the edisting hour number, but then I can type 20. I can also hit the up arrow key to increase the number to 20. Do either or both of those work for you?
Comment 2 David 2021-03-18 21:21:47 UTC
(In reply to Nate Graham from comment #1)
> Works for me. I have to delete the edisting hour number, but then I can type
> 20. I can also hit the up arrow key to increase the number to 20. Do either
> or both of those work for you?

Doesn't work like that for me. If I hit the up arrow it will switch to smaller numbers with "pm" at the end.
Comment 3 Nate Graham 2021-03-18 21:24:04 UTC
Now that's interesting. Are you using a locale with 12 hour time, like en_us?

I'm beginning to think the fact that I can set time by a 24-hour clock is in fact a bug, given that I'm using the en_us locale.
Comment 4 David 2021-03-18 21:28:32 UTC
Created attachment 136825 [details]
format_settings

I have the default locale settings for en_US. Attached is a screenshot of my configuration. My clock widget in the taskbar shows the time in 24-hour format.
Comment 5 Nate Graham 2021-03-18 23:18:43 UTC
I have the same settings. You say that the digital clock applet is showing 24-hour time. Is that because you told it to do so in its settings window by setting "Time display" to "24-hour"? Or does it say "Region defaults" in there, and that is erroneously evaluating to 23-hour time instead of 12-hour time?
Comment 6 David 2021-03-18 23:29:13 UTC
Created attachment 136830 [details]
clock_widget_settings

I think it might have been that I changed the settings of the clock widget to something non-default. Attached is a screenshot. But in any case, I don't see why the settings wouldn't auto-translate 20:00 -> 8:00pm if both are supported and very standard formats.
Comment 7 Nate Graham 2021-03-18 23:48:44 UTC
Oh you're using a Latte dock thing with a totally custom time format. Let's ignore that for now, since I believe it won't take into account your system locale configuration.

I think this is behaving as intended. When your system is set up for 12-hour time--which it should be by using the en_us locale--then you can't enter 20:00 as a time in the Clock KCM because that isn't a valid time. You need to enter the time in terms of 12-hour times, which your system is using.