[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    branches/kdepim/enterprise4/kdepim/kresources/kolab/shared
From:       Allen Winter <winter () kde ! org>
Date:       2009-04-30 20:07:15
Message-ID: 1241122035.256258.30005.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 961853 by winterz:

deal with dates that end with a "ZZ" by removing the last "Z" only and leaving
1 trailing "Z".  One trailing "Z" is required of ISO UTC dates.

Do NOT port this to e35.
DO port this to trunk and 4.2

This fixes KDE BUG 190909 btw


 M  +4 -1      kolabbase.cpp  


--- branches/kdepim/enterprise4/kdepim/kresources/kolab/shared/kolabbase.cpp #961852:961853
@@ -422,7 +422,10 @@
 
 KDateTime KolabBase::stringToDateTime( const QString& _date )
 {
-  const QString date( _date );
+  QString date( _date );
+  //deal with data from some clients that always append a Z to dates
+  if ( date.endsWith( "ZZ" ) )
+    date.truncate( date.length() - 1 );
   return KDateTime::fromString( date, KDateTime::ISODate );
 }
 
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic