diff options
author | Saturneric <[email protected]> | 2021-09-05 21:41:00 +0000 |
---|---|---|
committer | Saturneric <[email protected]> | 2021-09-05 21:41:00 +0000 |
commit | e2d30cc0194db74b77e3c06dbaf9c597bb82c860 (patch) | |
tree | d9df5302e59c59135495ee81657422cebd7b6092 /src/gpg/model/GpgSubKey.h | |
parent | Rewrite the core. (diff) | |
download | GpgFrontend-e2d30cc0194db74b77e3c06dbaf9c597bb82c860.tar.gz GpgFrontend-e2d30cc0194db74b77e3c06dbaf9c597bb82c860.zip |
Adjust the code structure.
Introduce log library.
Remove Qt from the core code.
Diffstat (limited to '')
-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 e474f5a9..c251141b 100644 --- a/src/gpg/model/GpgSubKey.h +++ b/src/gpg/model/GpgSubKey.h @@ -26,6 +26,7 @@ #include "gpg/GpgConstants.h" +#include <boost/date_time.hpp> #include <string> namespace GpgFrontend { @@ -64,12 +65,12 @@ public: [[nodiscard]] bool is_cardkey() const { return _subkey_ref->is_cardkey; } - [[nodiscard]] QDateTime timestamp() const { - return QDateTime::fromTime_t(_subkey_ref->timestamp); + [[nodiscard]] boost::gregorian::date timestamp() const { + return boost::posix_time::from_time_t(_subkey_ref->timestamp).date(); } - [[nodiscard]] QDateTime expires() const { - return QDateTime::fromTime_t(_subkey_ref->expires); + [[nodiscard]] boost::gregorian::date expires() const { + return boost::posix_time::from_time_t(_subkey_ref->expires).date(); } GpgSubKey() = default; |