summaryrefslogtreecommitdiffabout
path: root/libkcal/sharpformat.cpp
authorzautrix <zautrix>2004-08-07 14:52:25 (UTC)
committer zautrix <zautrix>2004-08-07 14:52:25 (UTC)
commit31764784e8753157a936e42e21dcdc41bd8e2eb7 (patch) (side-by-side diff)
treeddfe5653aadd0277d1181dc459ff73c50256be13 /libkcal/sharpformat.cpp
parent5f86d160a6d4406bdef53c8fe244baed0518142d (diff)
downloadkdepimpi-31764784e8753157a936e42e21dcdc41bd8e2eb7.zip
kdepimpi-31764784e8753157a936e42e21dcdc41bd8e2eb7.tar.gz
kdepimpi-31764784e8753157a936e42e21dcdc41bd8e2eb7.tar.bz2
Sync fixes
Diffstat (limited to 'libkcal/sharpformat.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--libkcal/sharpformat.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/libkcal/sharpformat.cpp b/libkcal/sharpformat.cpp
index e8934bf..ebfe164 100644
--- a/libkcal/sharpformat.cpp
+++ b/libkcal/sharpformat.cpp
@@ -85,7 +85,7 @@ class SharpParser : public QObject
if ( qName == "Event" ) {
Event *event;
- event = existingCalendar->event( "Sharp_DTM",attList[0].toInt() );
+ event = existingCalendar->event( "Sharp_DTM",attList[0] );
if ( event )
event = (Event*)event->clone();
else
@@ -98,8 +98,8 @@ class SharpParser : public QObject
event->setLocation( attList[3] );
event->setDescription( attList[4] );
if ( attList[7] == "1" ) {
- event->setDtStart( QDateTime(fromString( attList[17]+"000000", false ).date(),QTime(0,0,0 ) ));
- event->setDtEnd( QDateTime(fromString( attList[18]+"000000", false ).date(),QTime(0,0,0 )));
+ event->setDtStart( QDateTime(fromString( attList[17]+"T000000", false ).date(),QTime(0,0,0 ) ));
+ event->setDtEnd( QDateTime(fromString( attList[18]+"T000000", false ).date(),QTime(0,0,0 )));
event->setFloats( true );
} else {
event->setFloats( false );
@@ -189,7 +189,7 @@ class SharpParser : public QObject
} else if ( qName == "Todo" ) {
Todo *todo;
- todo = existingCalendar->todo( "Sharp_DTM", attList[0].toInt() );
+ todo = existingCalendar->todo( "Sharp_DTM", attList[0] );
if (todo )
todo = (Todo*)todo->clone();
else
@@ -358,7 +358,7 @@ ulong SharpFormat::getCsum( const QStringList & attList)
}
#include <stdlib.h>
-#define DEBUGMODE false
+#define DEBUGMODE true
bool SharpFormat::load( Calendar *calendar, Calendar *existngCal )
{