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

List:       kde-commits
Subject:    KDE/kdepim/kresources/groupwise/soap
From:       Will Stephenson <lists () stevello ! free-online ! co ! uk>
Date:       2005-06-30 14:20:35
Message-ID: 1120141235.787192.31991.nullmailer () svn ! kde ! org
[Download RAW message or body]

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;


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

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