diff options
author | Saturn&Eric <[email protected]> | 2021-12-07 08:37:54 +0000 |
---|---|---|
committer | GitHub <[email protected]> | 2021-12-07 08:37:54 +0000 |
commit | cc89ad54ab3dd4aeb3ed7afeed59a80b6e61649c (patch) | |
tree | 865d2298d836c8eb36584b5d268325bca4a66a78 /src/gpg/model/GpgSubKey.h | |
parent | Merge pull request #26 from saturneric/develop (diff) | |
parent | Fix Bugs on KeyUploadDialog (diff) | |
download | GpgFrontend-cc89ad54ab3dd4aeb3ed7afeed59a80b6e61649c.tar.gz GpgFrontend-cc89ad54ab3dd4aeb3ed7afeed59a80b6e61649c.zip |
Merge pull request #28 from saturneric/develop
Diffstat (limited to 'src/gpg/model/GpgSubKey.h')
-rw-r--r-- | src/gpg/model/GpgSubKey.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/gpg/model/GpgSubKey.h b/src/gpg/model/GpgSubKey.h index 5f65c507..462dcbca 100644 --- a/src/gpg/model/GpgSubKey.h +++ b/src/gpg/model/GpgSubKey.h @@ -21,6 +21,7 @@ * by Saturneric<[email protected]> starting on May 12, 2021. * */ + #ifndef GPGFRONTEND_GPGSUBKEY_H #define GPGFRONTEND_GPGSUBKEY_H @@ -65,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; |