[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdepim/kresources/kolab/shared
From: Allen Winter <winter () kde ! org>
Date: 2009-04-30 21:24:15
Message-ID: 1241126655.043322.9597.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 961893 by winterz:
forwardport merge from e4 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.
M +4 -1 kolabbase.cpp
--- trunk/KDE/kdepim/kresources/kolab/shared/kolabbase.cpp #961892:961893
@@ -422,7 +422,10 @@
KDateTime KolabBase::stringToDateTime( const QString& _date )
{
- const QString date( _date );
+ QString date( _date );
+ //In Qt4, Qt::ISODate must see a trailing Z for UTC, so keep one trailing Z.
+ if ( date.endsWith( "ZZ" ) )
+ date.chop( 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