aboutsummaryrefslogtreecommitdiffstats
path: root/src/gpg/model/GpgKey.h
diff options
context:
space:
mode:
authorSaturneric <[email protected]>2021-11-28 04:35:01 +0000
committerSaturneric <[email protected]>2021-11-28 04:35:01 +0000
commitb5b3ba7b1dc52a8dbae2a3a6970b44ede827f060 (patch)
tree7dffd4f4e6684d078616d88999590b95e8a56410 /src/gpg/model/GpgKey.h
parentUI Framework Modified. (diff)
downloadGpgFrontend-b5b3ba7b1dc52a8dbae2a3a6970b44ede827f060.tar.gz
GpgFrontend-b5b3ba7b1dc52a8dbae2a3a6970b44ede827f060.zip
Can be compiled with minimal UI support.
Diffstat (limited to 'src/gpg/model/GpgKey.h')
-rw-r--r--src/gpg/model/GpgKey.h4
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 {