aboutsummaryrefslogtreecommitdiffstats
path: root/src/gpg/model/GpgSubKey.h
diff options
context:
space:
mode:
authorSaturneric <[email protected]>2021-12-06 20:38:05 +0000
committerSaturneric <[email protected]>2021-12-06 20:38:05 +0000
commit4f9ee73ffdda5a495d25ebf4f769a4c43aa78295 (patch)
tree7ef532525a250c485d95c1df5e4b432e169ec53c /src/gpg/model/GpgSubKey.h
parentImprove UI & Functions (diff)
downloadGpgFrontend-4f9ee73ffdda5a495d25ebf4f769a4c43aa78295.tar.gz
GpgFrontend-4f9ee73ffdda5a495d25ebf4f769a4c43aa78295.zip
Test & Improve UI
Diffstat (limited to '')
-rw-r--r--src/gpg/model/GpgSubKey.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gpg/model/GpgSubKey.h b/src/gpg/model/GpgSubKey.h
index 3ee93a0c..462dcbca 100644
--- a/src/gpg/model/GpgSubKey.h
+++ b/src/gpg/model/GpgSubKey.h
@@ -66,12 +66,12 @@ class GpgSubKey {
[[nodiscard]] bool is_cardkey() const { return _subkey_ref->is_cardkey; }
- [[nodiscard]] boost::gregorian::date timestamp() const {
- return boost::posix_time::from_time_t(_subkey_ref->timestamp).date();
+ [[nodiscard]] boost::posix_time::ptime timestamp() const {
+ return boost::posix_time::from_time_t(_subkey_ref->timestamp);
}
- [[nodiscard]] boost::gregorian::date expires() const {
- return boost::posix_time::from_time_t(_subkey_ref->expires).date();
+ [[nodiscard]] boost::posix_time::ptime expires() const {
+ return boost::posix_time::from_time_t(_subkey_ref->expires);
}
GpgSubKey() = default;