summaryrefslogtreecommitdiffabout
authorulf69 <ulf69>2004-09-29 01:42:40 (UTC)
committer ulf69 <ulf69>2004-09-29 01:42:40 (UTC)
commitaf63a131d742aff8e448e5fe0f3e62b11a4d9a33 (patch) (unidiff)
tree2b299c6a4b365bf938c7b6269cd51bf38b0d9d99
parentbb0e15259ccb1883410435ad76eb0de08b7e2069 (diff)
downloadkdepimpi-af63a131d742aff8e448e5fe0f3e62b11a4d9a33.zip
kdepimpi-af63a131d742aff8e448e5fe0f3e62b11a4d9a33.tar.gz
kdepimpi-af63a131d742aff8e448e5fe0f3e62b11a4d9a33.tar.bz2
added some debug output
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--pwmanager/pwmanager/serializer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/pwmanager/pwmanager/serializer.cpp b/pwmanager/pwmanager/serializer.cpp
index fcdcec3..9377e3d 100644
--- a/pwmanager/pwmanager/serializer.cpp
+++ b/pwmanager/pwmanager/serializer.cpp
@@ -401,33 +401,33 @@ bool Serializer::extractMeta(const QDomNode &n,
401 } else { 401 } else {
402 printDebug(string("extractMeta(): invalid: ") 402 printDebug(string("extractMeta(): invalid: ")
403 + name.latin1()); 403 + name.latin1());
404 } 404 }
405#else 405#else
406 406
407 QDateTime m_dt; 407 QDateTime m_dt;
408 408
409 if ((name == META_CREATE_DATE) || 409 if ((name == META_CREATE_DATE) ||
410 (name == META_VALID_DATE) || 410 (name == META_VALID_DATE) ||
411 (name == META_EXPIRE_DATE) || 411 (name == META_EXPIRE_DATE) ||
412 (name == META_UPDATE_DATE)) 412 (name == META_UPDATE_DATE))
413 { 413 {
414 int pos = val.find("T"); 414 int pos = val.find("T");
415 QString date = val.left(pos); 415 QString date = val.left(pos);
416 QString time = val.mid(pos+1); 416 QString time = val.mid(pos+1);
417 qDebug("Serializer::extractMeta : date=%s ,time=%s",date.latin1(), time.latin1() ); 417 qDebug("Serializer::extractMeta from %s to date=%s ,time=%s",val.latin1(), date.latin1(), time.latin1() );
418 bool ok1, ok2; 418 bool ok1, ok2;
419 419
420 QDate m_date = KGlobal::locale()->readDate(date, &ok1); 420 QDate m_date = KGlobal::locale()->readDate(date, &ok1);
421 QTime m_time = KGlobal::locale()->readTime(time, &ok2); 421 QTime m_time = KGlobal::locale()->readTime(time, &ok2);
422 if ((ok1 == false) || (ok2 == false)) 422 if ((ok1 == false) || (ok2 == false))
423 qDebug("Serializer::extractMeta invalid date or time !!!!!!!!!!!!!"); 423 qDebug("Serializer::extractMeta invalid date or time !!!!!!!!!!!!!");
424 m_dt.setDate(m_date); 424 m_dt.setDate(m_date);
425 m_dt.setTime(m_time); 425 m_dt.setTime(m_time);
426 } 426 }
427 427
428 428
429 if (name == META_CREATE_DATE) { 429 if (name == META_CREATE_DATE) {
430 dta->create = m_dt; 430 dta->create = m_dt;
431 } else if (name == META_VALID_DATE) { 431 } else if (name == META_VALID_DATE) {
432 dta->valid = m_dt; 432 dta->valid = m_dt;
433 } else if (name == META_EXPIRE_DATE) { 433 } else if (name == META_EXPIRE_DATE) {