Bug 337563 - Switch between 24 and 12-hours time formats
Summary: Switch between 24 and 12-hours time formats
Status: RESOLVED DUPLICATE of bug 345378
Alias: None
Product: plasmashell
Classification: Plasma
Component: Digital Clock (show other bugs)
Version: 5.0.0
Platform: Mint (Ubuntu based) Linux
: NOR wishlist
Target Milestone: 1.0
Assignee: Martin Klapetek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-07-18 05:49 UTC by Cade
Modified: 2017-02-20 16:09 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Cade 2014-07-18 05:49:46 UTC
Feature request.
Switch between 24 and 12-hours time formats
Comment 1 Martin Klapetek 2014-07-18 07:34:10 UTC
Time format depends on the selected locale. If you right click the clock -> configure formats -> select a region which uses 24h or 12h clock. 

This is because we use Qt directly for giving us the time and that uses those locale variables. 

Currently we don't plan to add separate option to the clock settings, sorry.
Comment 2 Tim Edwards 2017-01-01 07:14:46 UTC
It'd be nice to have this feature, I live in Australia but have had to set my 'Time' format to United Kingdom to get 24-hour time.

This is a bit silly, I've lived in both countries and I wouldn't really say that one really uses 24-hour time more than the other. So it's a very arbitrary decision the Qt devs have made to say Australians always use 12-hour time.
Comment 3 Martin Klapetek 2017-01-02 17:18:06 UTC
> it's a very arbitrary decision the Qt devs have made

It's not their decision, iirc the data is taken from CLDR, the Common Locale Data Repository. This contains all countries' date and time formats and settings etc, Qt does have an internal copy of that data, but does not maintain their own database.

So either the Unicode guys have it wrong in their CLDR data or your Time region/locale was not eu_AU.
Comment 4 Tim Edwards 2017-01-02 22:16:06 UTC
It's not about one format being wrong or right, it's a personal preference whether to use 12 or 24-hour time. Most applications/apps/OSes have it as a settings option (even the KDE Plasma clock app has it as a setting). 

I was hoping that was possible in KDE5 but if it can't be done because of the way Qt is used then that's it.
Comment 5 Martin Klapetek 2017-01-02 23:00:26 UTC
I'm not disagreeing, I'm simply letting you know the Qt devs didn't make any "very arbitrary decision .. to say Australians always use 12-hour time"; Qt is using common locale data for your country.

Once Qt actually supports customizing locale settings, then there will be a simple switch available.
Comment 6 Tim Edwards 2017-01-03 00:13:20 UTC
Understood, thanks for clarifying. Hopefully Qt will support customising the settings soon.
Comment 7 Martin Klapetek 2017-02-20 16:09:35 UTC

*** This bug has been marked as a duplicate of bug 345378 ***