[Panel-devel] [PATCH] Displaying the timezone when the timezone is Local
Alex Merry
huntedhacker at tiscali.co.uk
Mon Dec 17 00:52:47 CET 2007
On Sunday 16 Dec 2007, Sebastian Kuegler wrote:
> If I'm not mistaken, the clock will, with this patch, always display
> the timezone it gets from the dataEngine, it should only do that if
> the timezone == Local checkbox is ticked, otherwise, it should show
> the configured timezone (stored in m_timezone).
>
> if (m_showTimezone) {
> - dateString = dateString + " " + m_timezone;
> + dateString = dateString + " " + m_prettyTimezone;
> dateString.replace("_", " ");
> }
Actually, if the requested timezone was not "Local", the engine throws
what you requested straight back. In this case, m_timezone ==
m_prettyTimezone. So this way gives cleaner code for the same result.
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: 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/4a88c73b/attachment.pgp
More information about the Panel-devel
mailing list