diff options
author | Timothy Pearson <[email protected]> | 2015-09-04 01:05:02 -0500 |
---|---|---|
committer | Timothy Pearson <[email protected]> | 2015-09-04 01:05:02 -0500 |
commit | f041f149c48900d0e3367c1c97f09a87731bcc44 (patch) | |
tree | 674d5dbf7791ccd0a35d69491e1313b5b18ba2fa /src | |
parent | 7833ad28661687c0a1e56e0cd227d69ee1cc006a (diff) | |
download | kcmldapmanager-f041f149c48900d0e3367c1c97f09a87731bcc44.tar.gz kcmldapmanager-f041f149c48900d0e3367c1c97f09a87731bcc44.zip |
Fix up certificate expiry detection
Diffstat (limited to 'src')
-rw-r--r-- | src/userconfigdlg.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/userconfigdlg.cpp b/src/userconfigdlg.cpp index d969c80..443391e 100644 --- a/src/userconfigdlg.cpp +++ b/src/userconfigdlg.cpp @@ -507,11 +507,11 @@ void UserConfigDialog::updatePKICertificateList() { if (cert) { TQString status = i18n("Invalid"); if (certificateData.first == PKICertificateStatus::Valid) { - if (TQDate::currentDate().daysTo(cert->getQDTNotAfter().date()) < 0) { + if (TQDateTime::currentDateTime(Qt::UTC) > cert->getQDTNotAfter()) { status = i18n("Expired"); } else { - if (cert->getQDTNotBefore().date().daysTo(TQDate::currentDate()) < 0) { + if (TQDateTime::currentDateTime(Qt::UTC) < cert->getQDTNotBefore()) { status = i18n("Future Valid"); } else { |