aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui/keypair_details/KeyPairUIDTab.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/keypair_details/KeyPairUIDTab.cpp')
-rw-r--r--src/ui/keypair_details/KeyPairUIDTab.cpp13
1 files changed, 4 insertions, 9 deletions
diff --git a/src/ui/keypair_details/KeyPairUIDTab.cpp b/src/ui/keypair_details/KeyPairUIDTab.cpp
index 8a58b270..b2aa8861 100644
--- a/src/ui/keypair_details/KeyPairUIDTab.cpp
+++ b/src/ui/keypair_details/KeyPairUIDTab.cpp
@@ -24,8 +24,6 @@
#include "ui/keypair_details/KeyPairUIDTab.h"
-#include <boost/locale.hpp>
-
#include "gpg/function/GpgKeyGetter.h"
#include "gpg/function/GpgKeyManager.h"
#include "gpg/function/UidOperator.h"
@@ -273,19 +271,16 @@ void KeyPairUIDTab::slotRefreshSigList() {
sigList->setItem(sigRow, 2, tmp3);
}
- std::stringstream ss;
- ss << boost::locale::as::datetime << sig.create_time();
- auto* tmp4 = new QTableWidgetItem(ss.str().c_str());
+ auto* tmp4 = new QTableWidgetItem(QLocale::system().toString(
+ QDateTime::fromTime_t(to_time_t(sig.create_time()))));
sigList->setItem(sigRow, 3, tmp4);
- ss.str(std::string());
- ss << boost::locale::as::datetime << sig.expire_time();
-
auto* tmp5 = new QTableWidgetItem(
boost::posix_time::to_time_t(
boost::posix_time::ptime(sig.expire_time())) == 0
? _("Never Expires")
- : ss.str().c_str());
+ : QLocale::system().toString(
+ QDateTime::fromTime_t(to_time_t(sig.expire_time()))));
tmp5->setTextAlignment(Qt::AlignCenter);
sigList->setItem(sigRow, 4, tmp5);