summaryrefslogtreecommitdiffstats
path: root/src/userconfigdlg.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/userconfigdlg.cpp')
-rw-r--r--src/userconfigdlg.cpp4
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 {