summaryrefslogtreecommitdiffabout
path: root/pwmanager
Unidiff
Diffstat (limited to 'pwmanager') (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) {