[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdebase/kicker/applets/clock
From: Aaron J. Seigo <aseigo () kde ! org>
Date: 2005-07-22 16:14:08
Message-ID: 1122048848.435265.22307.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 437649 by aseigo:
show the time zone we are showing in the tip. makes the reason why we
have "local timezone" showing much more obvious. looks nice even =)
M +4 -3 clock.cpp
--- trunk/KDE/kdebase/kicker/applets/clock/clock.cpp #437648:437649
@@ -1635,15 +1635,16 @@
}
else
{
- unsigned int i = zone->zoneIndex();
+ QString currentZone = zone->zone();
TZoffset = zone->calc_TZ_offset(zone->zone(0));
QString _localTime = KGlobal::locale()->formatTime(
clockGetTime(), _prefs->plainShowSeconds());
QString _localDate = KGlobal::locale()->formatDate(
clockGetDate(), false);
- TZoffset = zone->calc_TZ_offset(zone->zone(i));
+ TZoffset = zone->calc_TZ_offset(currentZone);
- data.message = _time + " " + _date;
+ data.message = currentZone.mid(currentZone.find('/') + 1).replace("_", " ")
+ + ":<br>" + _time + " " + _date;
data.subtext = i18n("Local Timezone") +
":<br>" + _localTime + " " + _localDate;
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic