[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: proko2: kdepim/kresources/kolab/shared
From: David Faure <faure () kde ! org>
Date: 2004-07-21 21:22:57
Message-ID: 20040721212257.BC90799A8 () office ! kde ! org
[Download RAW message or body]
CVS commit by faure:
Per the spec, use trailing 'Z'
M +5 -2 kolabbase.cpp 1.1.2.11
--- kdepim/kresources/kolab/shared/kolabbase.cpp #1.1.2.10:1.1.2.11
@@ -298,5 +298,5 @@ QDomDocument KolabBase::domTree()
QString KolabBase::dateTimeToString( const QDateTime& time )
{
- return time.toString( Qt::ISODate );
+ return time.toString( Qt::ISODate ) + 'Z';
}
@@ -306,6 +306,9 @@ QString KolabBase::dateToString( const Q
}
-QDateTime KolabBase::stringToDateTime( const QString& date )
+QDateTime KolabBase::stringToDateTime( const QString& _date )
{
+ QString date( _date );
+ if ( date.endsWith( "Z" ) )
+ date.truncate( date.length() - 1 );
return QDateTime::fromString( date, Qt::ISODate );
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic