diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2015-09-03 13:53:14 -0500 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2015-09-03 13:53:14 -0500 |
commit | a837e1327eeb8a04f168b5817bfe61ff41a46744 (patch) | |
tree | cb7c6fbffa12a00b6cbca90f4ba3c5663bf02089 /tdecert/tdecertpart.cc | |
parent | 5896a404bcc63085cf0a50d232d2d631a5107228 (diff) | |
download | tdelibs-a837e1327eeb8a04f168b5817bfe61ff41a46744.tar.gz tdelibs-a837e1327eeb8a04f168b5817bfe61ff41a46744.zip |
Fix incorrect handling of certificate dates in viewer module
This was a cosmetic issue only and did not affect actual certificate usage or validity
Diffstat (limited to 'tdecert/tdecertpart.cc')
-rw-r--r-- | tdecert/tdecertpart.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tdecert/tdecertpart.cc b/tdecert/tdecertpart.cc index 8bdd4d381..c6b163afb 100644 --- a/tdecert/tdecertpart.cc +++ b/tdecert/tdecertpart.cc @@ -636,7 +636,7 @@ void KCertPart::displayCACert(KSSLCertificate *c) { // Set the valid period TQPalette cspl = _ca_validFrom->palette(); - if (TQDateTime::currentDateTime() < c->getQDTNotBefore()) { + if (TQDateTime::currentDateTime(Qt::UTC) < c->getQDTNotBefore()) { cspl.setColor(TQColorGroup::Foreground, TQColor(196,33,21)); } else { cspl.setColor(TQColorGroup::Foreground, TQColor(42,153,59)); @@ -645,7 +645,7 @@ void KCertPart::displayCACert(KSSLCertificate *c) { _ca_validFrom->setText(c->getNotBefore()); cspl = _ca_validUntil->palette(); - if (TQDateTime::currentDateTime() > c->getQDTNotAfter()) { + if (TQDateTime::currentDateTime(Qt::UTC) > c->getQDTNotAfter()) { cspl.setColor(TQColorGroup::Foreground, TQColor(196,33,21)); } else { cspl.setColor(TQColorGroup::Foreground, TQColor(42,153,59)); @@ -677,7 +677,7 @@ void KCertPart::displayPKCS12Cert(KSSLCertificate *c) { // Set the valid period TQPalette cspl = _p12_validFrom->palette(); - if (TQDateTime::currentDateTime() < c->getQDTNotBefore()) { + if (TQDateTime::currentDateTime(Qt::UTC) < c->getQDTNotBefore()) { cspl.setColor(TQColorGroup::Foreground, TQColor(196,33,21)); } else { cspl.setColor(TQColorGroup::Foreground, TQColor(42,153,59)); @@ -686,7 +686,7 @@ void KCertPart::displayPKCS12Cert(KSSLCertificate *c) { _p12_validFrom->setText(c->getNotBefore()); cspl = _p12_validUntil->palette(); - if (TQDateTime::currentDateTime() > c->getQDTNotAfter()) { + if (TQDateTime::currentDateTime(Qt::UTC) > c->getQDTNotAfter()) { cspl.setColor(TQColorGroup::Foreground, TQColor(196,33,21)); } else { cspl.setColor(TQColorGroup::Foreground, TQColor(42,153,59)); |