aboutsummaryrefslogtreecommitdiffstats
path: root/src/gpg/GpgGenKeyInfo.h
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.h
parentImprove UI & Functions (diff)
downloadGpgFrontend-4f9ee73ffdda5a495d25ebf4f769a4c43aa78295.tar.gz
GpgFrontend-4f9ee73ffdda5a495d25ebf4f769a4c43aa78295.zip
Test & Improve UI
Diffstat (limited to '')
-rw-r--r--src/gpg/GpgGenKeyInfo.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/gpg/GpgGenKeyInfo.h b/src/gpg/GpgGenKeyInfo.h
index 53b0c9f1..14290e17 100644
--- a/src/gpg/GpgGenKeyInfo.h
+++ b/src/gpg/GpgGenKeyInfo.h
@@ -37,8 +37,9 @@ class GenKeyInfo {
std::string userid;
std::string algo;
int keySize = 2048;
- boost::gregorian::date expired =
- boost::gregorian::day_clock::local_day() + boost::gregorian::years(2);
+ boost::posix_time::ptime expired =
+ boost::posix_time::second_clock::local_time() +
+ boost::gregorian::years(2);
bool nonExpired = false;
bool noPassPhrase = false;
@@ -73,11 +74,11 @@ class GenKeyInfo {
void setKeySize(int m_key_size);
- [[nodiscard]] const boost::gregorian::date &getExpired() const {
+ [[nodiscard]] const boost::posix_time::ptime &getExpired() const {
return expired;
}
- void setExpired(const boost::gregorian::date &m_expired);
+ void setExpired(const boost::posix_time::ptime &m_expired);
[[nodiscard]] bool isNonExpired() const { return nonExpired; }