Review Request 124453: [digital-clock] Provide a simple option for 24h clock

David Edmundson david at davidedmundson.co.uk
Sat Jul 25 10:47:46 UTC 2015



> On July 24, 2015, 4:46 p.m., David Edmundson wrote:
> > applets/digital-clock/package/contents/ui/configAppearance.qml, line 91
> > <https://git.reviewboard.kde.org/r/124453/diff/3/?file=387247#file387247line91>
> >
> >     am I right that this will be
> >     
> >     checkbox on: 24 hours clock
> >     checkbox off: maybe 12, maybe 24 hour clock depending on your locale
> >     
> >     ?
> 
> Martin Klapetek wrote:
>     No, it will in fact follow the setting regardless of locale (see line 382 in the diff). However, it would be good to make the default the same as the locale (currently it defaults to am/pm).
> 
> Martin Klapetek wrote:
>     (note that QLocale switches the 24h/12h automatically according to the presence of "ap" or "AP" in the format string)
> 
> Kai Uwe Broulik wrote:
>     I think that should be a combobox with "system default" as default and then an override for 12/24 hour. I would expect to have the digital clock just follow the locale and then if you can't cope with 12 hour clock, be able to override that there.

I'm fine with this then. +1

As a Brit; we apparently use 12 hour clock according to the locale people. In reality we do use 12 hour when using time in a sentence, but any clock acting as a clock will almost always be 24 hours.


- David


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/124453/#review82908
-----------------------------------------------------------


On July 24, 2015, 2:40 p.m., Martin Klapetek wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://git.reviewboard.kde.org/r/124453/
> -----------------------------------------------------------
> 
> (Updated July 24, 2015, 2:40 p.m.)
> 
> 
> Review request for Plasma.
> 
> 
> Bugs: 345378
>     https://bugs.kde.org/show_bug.cgi?id=345378
> 
> 
> Repository: plasma-workspace
> 
> 
> Description
> -------
> 
> This is _the_ most requested feature for the clock, simple checkbox for 24h clock.
> 
> In my opinion this is just a temporary workaround and not a very good one (generally,
> code-wise it's awesome :P). There should really be a global config option for that
> but as we now rely on QLocale and QLocale is...bad at this, here's at least this
> small help, which will at least change the clock format on the panel.
> 
> Imo we could really really use something like KLocale again.
> 
> 
> Diffs
> -----
> 
>   applets/digital-clock/package/contents/config/main.xml 8b0872b 
>   applets/digital-clock/package/contents/ui/DigitalClock.qml 9506078 
>   applets/digital-clock/package/contents/ui/configAppearance.qml ead0ad5 
> 
> Diff: https://git.reviewboard.kde.org/r/124453/diff/
> 
> 
> Testing
> -------
> 
> Switching the checkbox on and off works as expected.
> 
> 
> Thanks,
> 
> Martin Klapetek
> 
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20150725/09a3cf70/attachment.html>


More information about the Plasma-devel mailing list