aboutsummaryrefslogtreecommitdiffstats
path: root/src/gpg/model/GpgSubKey.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/gpg/model/GpgSubKey.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/gpg/model/GpgSubKey.h b/src/gpg/model/GpgSubKey.h
index e474f5a9..c251141b 100644
--- a/src/gpg/model/GpgSubKey.h
+++ b/src/gpg/model/GpgSubKey.h
@@ -26,6 +26,7 @@
#include "gpg/GpgConstants.h"
+#include <boost/date_time.hpp>
#include <string>
namespace GpgFrontend {
@@ -64,12 +65,12 @@ public:
[[nodiscard]] bool is_cardkey() const { return _subkey_ref->is_cardkey; }
- [[nodiscard]] QDateTime timestamp() const {
- return QDateTime::fromTime_t(_subkey_ref->timestamp);
+ [[nodiscard]] boost::gregorian::date timestamp() const {
+ return boost::posix_time::from_time_t(_subkey_ref->timestamp).date();
}
- [[nodiscard]] QDateTime expires() const {
- return QDateTime::fromTime_t(_subkey_ref->expires);
+ [[nodiscard]] boost::gregorian::date expires() const {
+ return boost::posix_time::from_time_t(_subkey_ref->expires).date();
}
GpgSubKey() = default;