aboutsummaryrefslogtreecommitdiffstats
path: root/src/gpg/model/GpgKey.h
diff options
context:
space:
mode:
authorSaturn&Eric <[email protected]>2021-12-07 08:37:54 +0000
committerGitHub <[email protected]>2021-12-07 08:37:54 +0000
commitcc89ad54ab3dd4aeb3ed7afeed59a80b6e61649c (patch)
tree865d2298d836c8eb36584b5d268325bca4a66a78 /src/gpg/model/GpgKey.h
parentMerge pull request #26 from saturneric/develop (diff)
parentFix Bugs on KeyUploadDialog (diff)
downloadGpgFrontend-cc89ad54ab3dd4aeb3ed7afeed59a80b6e61649c.tar.gz
GpgFrontend-cc89ad54ab3dd4aeb3ed7afeed59a80b6e61649c.zip
Merge pull request #28 from saturneric/develop
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 {