Bug 162850

Summary: time display is wrong
Product: [Applications] systemsettings Reporter: Olivier Vitrat <ovit.debian>
Component: kcm_clockAssignee: Unassigned bugs mailing-list <unassigned-bugs>
Status: RESOLVED FIXED    
Severity: normal CC: bluedzins, finex, wstephenson
Priority: NOR Keywords: needs_verification
Version: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:

Description Olivier Vitrat 2008-05-30 03:53:04 UTC
Version:            (using Devel)
Installed from:    Compiled sources

(I'm using 4.0.80 packages from Debian experimental)
I want to display time in 24h format in KDE4 and not the am/pm notation.
So I choose in systemsettings > Regional settings > date & time > time format HH:MM:SS
but it displays wrong. For example, I expect to see something like  21:45:17 but instead it displays 21:MM:17 in all applications.
When I switch back to pH:MM:SS AMPM format, sometimes the switch is ok, sometimes not.
Comment 1 Olivier Vitrat 2008-05-30 05:25:45 UTC
I've done a test with a new user, and time display is ok
so the question is: which file is corrupted ?
Comment 2 Olivier Vitrat 2008-05-31 16:39:19 UTC
more information
problem seems with file ~/.kde4/share/config/kdeglobals
I removed this file  and time display well.
But if I add another language "french", it adds the following lines in kdeglobals
[Locale]
Country=C
Language=fr:
TimeFormat=%l:%M:%S %p

and then I can't switch again the time format...
Comment 3 Olivier Vitrat 2008-05-31 16:48:20 UTC
When I specify country = Canada i now have in kdeglobals
[Locale]
Country=ca
DateFormat=%B %e, %Y
DateFormatShort=%d/%m/%y
Language=fr:
MonetaryDecimalSymbol=.
MonetaryThousandsSeparator=$0,$0
ThousandsSeparator=$0,$0
TimeFormat=%H:MM:%S

TimeFormat is wrong !
Comment 4 Will Stephenson 2008-06-28 23:32:40 UTC
Can you look in $(kde4-config --prefix)/share/locale/l10n/ca/entry.desktop and check the values of the TimeFormat lines?  I would expect to see a %H:MM:%S as copied to your kdeglobals file there.  However I do not have that in my version of that file and there have been no recent changes to it in SVN.
Comment 5 Olivier Vitrat 2008-06-29 16:59:41 UTC
hi,
Here it is:
ovit@hobbes:~$ grep TimeFormat $(kde4-config --prefix)/share/locale/l10n/ca/entry.desktop
TimeFormat[en_GB]=%I:%M:%S %p
TimeFormat[fr]=%H:%M:%S
TimeFormat[en_US]=%I:%M:%S %p
TimeFormat[eo]=%H:%M:%S

seems ok
Comment 6 FiNeX 2008-11-14 00:19:17 UTC
Hi Olivier, can you still reproduce this bug using a clean account with the new KDE 4.1.3 or using trunk?

thanks!
Comment 7 FiNeX 2008-12-07 18:59:01 UTC
You should try even using KDE 4.2 beta1 which has a lot of new fixes too.