aboutsummaryrefslogtreecommitdiffstats
path: root/src/gpg/GpgGenKeyInfo.cpp
diff options
context:
space:
mode:
authorSaturneric <[email protected]>2021-12-06 20:38:05 +0000
committerSaturneric <[email protected]>2021-12-06 20:38:05 +0000
commit4f9ee73ffdda5a495d25ebf4f769a4c43aa78295 (patch)
tree7ef532525a250c485d95c1df5e4b432e169ec53c /src/gpg/GpgGenKeyInfo.cpp
parentImprove UI & Functions (diff)
downloadGpgFrontend-4f9ee73ffdda5a495d25ebf4f769a4c43aa78295.tar.gz
GpgFrontend-4f9ee73ffdda5a495d25ebf4f769a4c43aa78295.zip
Test & Improve UI
Diffstat (limited to '')
-rw-r--r--src/gpg/GpgGenKeyInfo.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gpg/GpgGenKeyInfo.cpp b/src/gpg/GpgGenKeyInfo.cpp
index 07708433..4a0a99fc 100644
--- a/src/gpg/GpgGenKeyInfo.cpp
+++ b/src/gpg/GpgGenKeyInfo.cpp
@@ -147,9 +147,9 @@ void GpgFrontend::GenKeyInfo::setKeySize(int m_key_size) {
}
void GpgFrontend::GenKeyInfo::setExpired(
- const boost::gregorian::date &m_expired) {
+ const boost::posix_time::ptime &m_expired) {
using namespace boost::gregorian;
- auto current = day_clock::local_day();
+ auto current = boost::posix_time::second_clock::local_time();
if (isNonExpired() && m_expired < current + years(2)) {
GenKeyInfo::expired = m_expired;
}
@@ -157,7 +157,7 @@ void GpgFrontend::GenKeyInfo::setExpired(
void GpgFrontend::GenKeyInfo::setNonExpired(bool m_non_expired) {
using namespace boost::posix_time;
- if (!m_non_expired) this->expired = from_time_t(0).date();
+ if (!m_non_expired) this->expired = from_time_t(0);
GenKeyInfo::nonExpired = m_non_expired;
}