From kde-commits Thu Jun 30 14:20:35 2005 From: Will Stephenson Date: Thu, 30 Jun 2005 14:20:35 +0000 To: kde-commits Subject: KDE/kdepim/kresources/groupwise/soap Message-Id: <1120141235.787192.31991.nullmailer () svn ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=112014127725182 SVN commit 430214 by wstephens: read floating events correctly using new schema M +7 -8 incidenceconverter.cpp --- trunk/KDE/kdepim/kresources/groupwise/soap/incidenceconverter.cpp #430213:430214 @@ -62,13 +62,12 @@ if ( appointment->allDayEvent && (*appointment->allDayEvent) ) { event->setFloats( true ); - // startDate actually belongs to CalendarItem, but the way it is interpreted depends on - // whether allDayEvent from Appointment is true - if ( appointment->startDate != 0 ) - event->setDtStart( charToQDate( appointment->startDate ) ); - if ( appointment->endDate != 0 ) - event->setDtEnd( charToQDate( appointment->endDate ).addDays( -1 ) ); + if ( appointment->startDay != 0 ) + event->setDtStart( QDate::fromString( QString::fromUtf8( appointment->startDay->c_str() ), Qt::ISODate ) ); + + if ( appointment->endDay != 0 ) + event->setDtEnd( QDate::fromString( QString::fromUtf8( appointment->endDay->c_str() ), Qt::ISODate ) ); } else { @@ -132,10 +131,10 @@ appointment->allDayEvent = allDayEvent; if ( event->dtStart().isValid() ) - appointment->startDate = qDateToChar( event->dtStart().date() ); +// appointment->startDate = qDateToChar( event->dtStart().date() ); appointment->startDay = qDateToString( event->dtStart().date() ); if ( event->hasEndDate() ) - appointment->endDate = qDateToChar( event->dtEnd().date() ); +// appointment->endDate = qDateToChar( event->dtEnd().date() ); appointment->endDay = qDateToString( event->dtEnd().date() ); } else { appointment->allDayEvent = 0;