diff options
author | Saturneric <[email protected]> | 2021-11-28 04:35:01 +0000 |
---|---|---|
committer | Saturneric <[email protected]> | 2021-11-28 04:35:01 +0000 |
commit | b5b3ba7b1dc52a8dbae2a3a6970b44ede827f060 (patch) | |
tree | 7dffd4f4e6684d078616d88999590b95e8a56410 /src/gpg/model/GpgKey.h | |
parent | UI Framework Modified. (diff) | |
download | GpgFrontend-b5b3ba7b1dc52a8dbae2a3a6970b44ede827f060.tar.gz GpgFrontend-b5b3ba7b1dc52a8dbae2a3a6970b44ede827f060.zip |
Can be compiled with minimal UI support.
Diffstat (limited to '')
-rw-r--r-- | src/gpg/model/GpgKey.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gpg/model/GpgKey.h b/src/gpg/model/GpgKey.h index 1aa307e6..ecebf3b2 100644 --- a/src/gpg/model/GpgKey.h +++ b/src/gpg/model/GpgKey.h @@ -74,7 +74,9 @@ class GpgKey { } [[nodiscard]] boost::gregorian::date last_update() const { - return boost::posix_time::from_time_t(_key_ref->last_update).date(); + return boost::posix_time::from_time_t( + static_cast<time_t>(_key_ref->last_update)) + .date(); } [[nodiscard]] boost::gregorian::date expires() const { |