diff options
author | Saturn&Eric <[email protected]> | 2021-12-07 08:37:54 +0000 |
---|---|---|
committer | GitHub <[email protected]> | 2021-12-07 08:37:54 +0000 |
commit | cc89ad54ab3dd4aeb3ed7afeed59a80b6e61649c (patch) | |
tree | 865d2298d836c8eb36584b5d268325bca4a66a78 /src/gpg/GpgGenKeyInfo.h | |
parent | Merge pull request #26 from saturneric/develop (diff) | |
parent | Fix Bugs on KeyUploadDialog (diff) | |
download | GpgFrontend-cc89ad54ab3dd4aeb3ed7afeed59a80b6e61649c.tar.gz GpgFrontend-cc89ad54ab3dd4aeb3ed7afeed59a80b6e61649c.zip |
Merge pull request #28 from saturneric/develop
Diffstat (limited to '')
-rw-r--r-- | src/gpg/GpgGenKeyInfo.h | 9 |
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; } |