[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdepim/kresources/groupwise/soap
From: David Jarvie <software () astrojar ! org ! uk>
Date: 2006-09-12 12:13:56
Message-ID: 1158063236.810548.18530.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 583477 by djarvie:
Further conversion to KDateTime
M +10 -3 gwconverter.cpp
M +1 -0 gwconverter.h
M +2 -2 incidenceconverter.cpp
--- trunk/KDE/kdepim/kresources/groupwise/soap/gwconverter.cpp #583476:583477
@@ -124,10 +124,17 @@
return dt;
}
-QDateTime GWConverter::charToQDateTime( const char *str,
+KDateTime GWConverter::charToKDateTime( const char *str,
const KDateTime::Spec &timeSpec )
{
- if ( !str ) return QDateTime();
+ if ( !str ) return KDateTime();
QDateTime utc = charToQDateTime( str );
- return KPimPrefs::utcToLocalTime( utc, timeSpec );
+ utc.setTimeSpec( Qt::UTC );
+ return KDateTime( utc, timeSpec );
}
+
+QDateTime GWConverter::charToQDateTime( const char *str,
+ const KDateTime::Spec &timeSpec )
+{
+ return charToKDateTime( str, timeSpec ).dateTime();
+}
--- trunk/KDE/kdepim/kresources/groupwise/soap/gwconverter.h #583476:583477
@@ -50,6 +50,7 @@
QDateTime charToQDateTime( const char *str );
QDateTime charToQDateTime( const char *str, const KDateTime::Spec &timeSpec );
+ KDateTime charToKDateTime( const char *str, const KDateTime::Spec &timeSpec );
std::string* qDateTimeToString( const QDateTime &string, const KDateTime::Spec &timeSpec );
std::string* qDateTimeToString( const QDateTime &string );
--- trunk/KDE/kdepim/kresources/groupwise/soap/incidenceconverter.cpp #583476:583477
@@ -501,10 +501,10 @@
kDebug() << "SUMMARY: " << incidence->summary() << endl;
if ( item->created )
- incidence->setCreated( charToQDateTime( item->created, mTimezone ) );
+ incidence->setCreated( charToKDateTime( item->created, mTimezone ) );
if ( item->modified != 0 )
- incidence->setLastModified( charToQDateTime( item->modified, mTimezone ) );
+ incidence->setLastModified( charToKDateTime( item->modified, mTimezone ) );
getItemDescription( item, incidence );
getAttendees( item, incidence );
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic