Wolfgang Bauer composed on 2016-04-10 10:35 (UTC+0200):
Wolfgang Bauer composed:
What locale are you using?
Good question. How do I tell? I'm an American in the US who speaks, reads and writes only one language, so don't ordinarily have to pay much attention to locale issues. My main issues regarding locale are getting iso format dates, times in 86400 seconds per day format, and letter paper. http://fm.no-ip.com/SS/KDE/k5locale-gx745-ostw.png Next tab down, spell checker options, the only possible default lang selection is C.
I had a look at the code, and it contains special code to remove the seconds from the time format string. This code has the following comment: It can happen that Qt uses the 'C' locale (it's a fallback) and that locale has always ":ss" part in ShortFormat, so we need to remove it.
Apparently that's not quite working as intended in this case... I haven't analyzed that code further yet, though.
OTOH, there are major changes to the digital clock going on currently, so this might be fixed in 5.7 anyway.
A fix for https://bugs.kde.org/show_bug.cgi?id=340982 finally?
I did look at it closer meanwhile, and the problem is actually that the code does *not* remove the seconds (i.e. the removal does not work), and later on it only adds the seconds to the new format string that's actually used to display the time if they are not in the original format string already.
IOW, if the "ShortFormat" of your time locale already contains seconds, they won't be displayed by the digital clock.
You can fix this yourself by opening the file /usr/share/plasma/plasmoids/org.kde.plasma.digitalclock/contents/ui/DigitalClock.qml and changing line 501from if (main.showSeconds && timeFormatString.indexOf('s') == -1) { to if (main.showSeconds) {
It works!!!
I will submit a fix later...
Thanks! -- "The wise are known for their understanding, and pleasant words are persuasive." Proverbs 16:21 (New Living Translation) Team OS/2 ** Reg. Linux User #211409 ** a11y rocks! Felix Miata *** http://fm.no-ip.com/ -- To unsubscribe, e-mail: opensuse-kde+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-kde+owner@opensuse.org