diff options
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; |