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

Martin Klapetek martin.klapetek at gmail.com
Tue Aug 4 22:09:45 UTC 2015



> On Aug. 4, 2015, 11:57 p.m., David Edmundson wrote:
> > applets/digital-clock/package/contents/ui/DigitalClock.qml, line 470
> > <https://git.reviewboard.kde.org/r/124453/diff/4/?file=389650#file389650line470>
> >
> >     this regexp won't work in Korean or Chinese.
> >     
> >     I made a list of all the possible values from the ICU file
> >     
> >     "a h:mm:ss"
> >     "ah:mm:ss"
> >     "HH:mm:ss"
> >     "HH.mm.ss"
> >     "H:mm:ss"
> >     "H.mm.ss"
> >     "h:mm:ss a"
> >     
> >     
> >     letters conversion here: http://www.unicode.org/reports/tr35/tr35-37/tr35-dates.html#Date_Field_Symbol_Table
> >     
> >     I think your regexp wants a "h" as the first letter.
> >     We can drop the '^' for a quick fix; though I guess we should also make sure the am/pm is on the correct side too.

Ah, good catch. Interestingly enough, this regexp is used since about Plasma 5.0 and in the previous code (the current one) it broke the "Show seconds" setting for those starting with "a", but no report was ever filed *shrug*


- Martin


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


On Aug. 3, 2015, 7:24 p.m., Martin Klapetek wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://git.reviewboard.kde.org/r/124453/
> -----------------------------------------------------------
> 
> (Updated Aug. 3, 2015, 7:24 p.m.)
> 
> 
> Review request for Plasma and Thomas Pfeiffer.
> 
> 
> 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/ui/configAppearance.qml cc1acbe 
>   applets/digital-clock/package/contents/ui/DigitalClock.qml 696903a 
>   applets/digital-clock/package/contents/config/main.xml 8b0872b 
> 
> 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/20150804/d2e3dbf0/attachment-0001.html>


More information about the Plasma-devel mailing list