aboutsummaryrefslogtreecommitdiffstats
path: root/src/gpg/model/GpgKey.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gpg/model/GpgKey.h')
-rw-r--r--src/gpg/model/GpgKey.h13
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 {