[Panel-devel] [PATCH] Displaying the timezone when the timezone is Local
Sebastian Kuegler
sebas at kde.org
Mon Dec 17 01:12:57 CET 2007
On Monday 17 December 2007 00:52:47 Alex Merry wrote:
> 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.
Aye, nice then. :-)
--
sebas
http://www.kde.org | http://vizZzion.org | GPG Key ID: 9119 0EF9
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 481 bytes
Desc: This is a digitally signed message part.
Url : http://mail.kde.org/pipermail/panel-devel/attachments/20071217/30c30129/attachment.pgp
More information about the Panel-devel
mailing list