[Panel-devel] [PATCH] Displaying the timezone when the timezone is Local

Alex Merry huntedhacker at tiscali.co.uk
Sun Dec 16 18:04:02 CET 2007


The attached patch introduces a "Timezone" property to the time engine.  
It's pretty useless if you've specified the timezone you want, but if 
the timezone is "Local", then it gives you the name of the system 
timezone.

The digital clock is patched to show the real local timezone when the 
local timezone is selected and "Show timezone" is selected.

This suffers from the deficiency mentioned in the 
KSystemTimeZones::local() apidox, namely that it can't distinguish 
between identical timezones on all systems.  For example, I'm in the 
Europe/London timezone, but it displays Europe/Guernsey for me.

It also introduces another string.  The other keys in the time engine 
are translated and I followed suit with this one.

Alex


-- 
KDE: http://www.kde.org
Ubuntu/Kubuntu: http://www.ubuntu.org http://www.kubuntu.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: datetime.diff
Type: text/x-diff
Size: 2550 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/panel-devel/attachments/20071216/138c905a/attachment-0001.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
Url : http://mail.kde.org/pipermail/panel-devel/attachments/20071216/138c905a/attachment-0001.pgp 


More information about the Panel-devel mailing list