diff options
author | Saturneric <[email protected]> | 2021-12-06 20:38:05 +0000 |
---|---|---|
committer | Saturneric <[email protected]> | 2021-12-06 20:38:05 +0000 |
commit | 4f9ee73ffdda5a495d25ebf4f769a4c43aa78295 (patch) | |
tree | 7ef532525a250c485d95c1df5e4b432e169ec53c /src/gpg/GpgGenKeyInfo.cpp | |
parent | Improve UI & Functions (diff) | |
download | GpgFrontend-4f9ee73ffdda5a495d25ebf4f769a4c43aa78295.tar.gz GpgFrontend-4f9ee73ffdda5a495d25ebf4f769a4c43aa78295.zip |
Test & Improve UI
Diffstat (limited to '')
-rw-r--r-- | src/gpg/GpgGenKeyInfo.cpp | 6 |
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; } |