diff options
author | Saturneric <[email protected]> | 2021-12-06 20:38:05 +0000 |
---|---|---|
committer | Saturneric <[email protected]> | 2021-12-06 20:38:05 +0000 |
commit | 4f9ee73ffdda5a495d25ebf4f769a4c43aa78295 (patch) | |
tree | 7ef532525a250c485d95c1df5e4b432e169ec53c /src/gpg/model/GpgKey.h | |
parent | Improve UI & Functions (diff) | |
download | GpgFrontend-4f9ee73ffdda5a495d25ebf4f769a4c43aa78295.tar.gz GpgFrontend-4f9ee73ffdda5a495d25ebf4f769a4c43aa78295.zip |
Test & Improve UI
Diffstat (limited to '')
-rw-r--r-- | src/gpg/model/GpgKey.h | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/src/gpg/model/GpgKey.h b/src/gpg/model/GpgKey.h index 53c074e8..3bebcd41 100644 --- a/src/gpg/model/GpgKey.h +++ b/src/gpg/model/GpgKey.h @@ -73,18 +73,17 @@ class GpgKey { return gpgme_pubkey_algo_name(_key_ref->subkeys->pubkey_algo); } - [[nodiscard]] boost::gregorian::date last_update() const { + [[nodiscard]] boost::posix_time::ptime last_update() const { return boost::posix_time::from_time_t( - static_cast<time_t>(_key_ref->last_update)) - .date(); + static_cast<time_t>(_key_ref->last_update)); } - [[nodiscard]] boost::gregorian::date expires() const { - return boost::posix_time::from_time_t(_key_ref->subkeys->expires).date(); + [[nodiscard]] boost::posix_time::ptime expires() const { + return boost::posix_time::from_time_t(_key_ref->subkeys->expires); }; - [[nodiscard]] boost::gregorian::date create_time() const { - return boost::posix_time::from_time_t(_key_ref->subkeys->timestamp).date(); + [[nodiscard]] boost::posix_time::ptime create_time() const { + return boost::posix_time::from_time_t(_key_ref->subkeys->timestamp); }; [[nodiscard]] unsigned int length() const { |