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

List:       kde-commits
Subject:    kdebase/kcontrol/crypto
From:       George Staikos <staikos () kde ! org>
Date:       2003-09-23 20:58:02
[Download RAW message or body]

CVS commit by staikos: 

display and compare dates in UTC


  M +7 -7      crypto.cpp   1.127


--- kdebase/kcontrol/crypto/crypto.cpp  #1.126:1.127
@@ -1515,5 +1515,5 @@ QString iss = QString::null;
          iss = cert->getIssuer();
          cspl = validFrom->palette();
-         if (QDateTime::currentDateTime() < cert->getQDTNotBefore()) {
+         if (QDateTime::currentDateTime(Qt::UTC) < cert->getQDTNotBefore()) {
             cspl.setColor(QColorGroup::Foreground, QColor(196,33,21));
          } else {
@@ -1523,5 +1523,5 @@ QString iss = QString::null;
 
          cspl = validUntil->palette();
-         if (QDateTime::currentDateTime() > cert->getQDTNotAfter()) {
+         if (QDateTime::currentDateTime(Qt::UTC) > cert->getQDTNotAfter()) {
             cspl.setColor(QColorGroup::Foreground, QColor(196,33,21));
          } else {
@@ -1533,5 +1533,5 @@ QString iss = QString::null;
          validUntil->setText(cert->getNotAfter());
          untilDate->setText(x ? KGlobal::locale()->formatDateTime(x->getExpires())
-                              : KGlobal::locale()->formatDateTime(QDateTime::currentDateTime()));
+                              : KGlobal::locale()->formatDateTime(QDateTime::currentDateTime(Qt::UTC)));
          untilDate->setEnabled(x && !x->isPermanent());
          pHash->setText(cert->getMD5DigestText());
@@ -1750,5 +1750,5 @@ QString iss;
          KSSLCertificate *cert = pkcs->getCertificate();
          cspl = yValidFrom->palette();
-         if (QDateTime::currentDateTime() < cert->getQDTNotBefore()) {
+         if (QDateTime::currentDateTime(Qt::UTC) < cert->getQDTNotBefore()) {
             cspl.setColor(QColorGroup::Foreground, QColor(196,33,21));
          } else {
@@ -1758,5 +1758,5 @@ QString iss;
 
          cspl = yValidUntil->palette();
-         if (QDateTime::currentDateTime() > cert->getQDTNotAfter()) {
+         if (QDateTime::currentDateTime(Qt::UTC) > cert->getQDTNotAfter()) {
             cspl.setColor(QColorGroup::Foreground, QColor(196,33,21));
          } else {
@@ -1789,5 +1789,5 @@ QString iss;
          iss = cert->getIssuer();
          cspl = yValidFrom->palette();
-         if (QDateTime::currentDateTime() < cert->getQDTNotBefore()) {
+         if (QDateTime::currentDateTime(Qt::UTC) < cert->getQDTNotBefore()) {
             cspl.setColor(QColorGroup::Foreground, QColor(196,33,21));
          } else {
@@ -1797,5 +1797,5 @@ QString iss;
 
          cspl = yValidUntil->palette();
-         if (QDateTime::currentDateTime() > cert->getQDTNotAfter()) {
+         if (QDateTime::currentDateTime(Qt::UTC) > cert->getQDTNotAfter()) {
             cspl.setColor(QColorGroup::Foreground, QColor(196,33,21));
          } else {


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

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