aboutsummaryrefslogtreecommitdiffstats
path: root/src/gpg/model/GpgSubKey.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/GpgSubKey.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/GpgSubKey.h')
-rw-r--r--src/gpg/model/GpgSubKey.h9
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;