aboutsummaryrefslogtreecommitdiffstats
path: root/src/gpg/model/GpgKey.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-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 {