From 9fd09e806dfe3df5abdf70991b6ec170fed51078 Mon Sep 17 00:00:00 2001 From: zautrix Date: Mon, 18 Oct 2004 22:08:36 +0000 Subject: added 30min plus to timezone setting --- (limited to 'microkde') diff --git a/microkde/kdecore/klocale.cpp b/microkde/kdecore/klocale.cpp index 27acfec..673d845 100644 --- a/microkde/kdecore/klocale.cpp +++ b/microkde/kdecore/klocale.cpp @@ -819,9 +819,11 @@ QStringList KLocale::timeZoneList() const { return mTimeZoneList; } -void KLocale::setTimezone( const QString &timeZone ) +void KLocale::setTimezone( const QString &timeZone, bool oddTZ ) { mTimeZoneOffset = timezoneOffset( timeZone ); + if ( oddTZ ) + mTimeZoneOffset += 30; } void KLocale::setDaylightSaving( bool b, int start , int end ) diff --git a/microkde/kdecore/klocale.h b/microkde/kdecore/klocale.h index 5783530..be9442c 100644 --- a/microkde/kdecore/klocale.h +++ b/microkde/kdecore/klocale.h @@ -95,7 +95,7 @@ class KLocale QStringList timeZoneList() const; void setDaylightSaving( bool, int , int ); int localTimeOffset(const QDateTime &); - void setTimezone( const QString &timeZone ); + void setTimezone( const QString &timeZone , bool oddTZ); private: QTime readTime(const QString &str, bool seconds, bool *ok) const; QDate readDate(const QString &str, bool shortFormat, bool *ok) const; -- cgit v0.9.0.2