diff options
author | Saturneric <[email protected]> | 2023-02-11 13:48:17 +0000 |
---|---|---|
committer | Saturneric <[email protected]> | 2023-02-11 13:48:17 +0000 |
commit | b729e71d48eb21bf3cf6a7efc1e0adbc724bd147 (patch) | |
tree | e49fda39ecc54d15c1aa5947e7303f09616f3598 /src/ui/dialog/keypair_details/KeyUIDSignDialog.cpp | |
parent | feat: add more gnupg operations (diff) | |
download | GpgFrontend-b729e71d48eb21bf3cf6a7efc1e0adbc724bd147.tar.gz GpgFrontend-b729e71d48eb21bf3cf6a7efc1e0adbc724bd147.zip |
feat: upgrade qt framework to 6.3
Diffstat (limited to 'src/ui/dialog/keypair_details/KeyUIDSignDialog.cpp')
-rw-r--r-- | src/ui/dialog/keypair_details/KeyUIDSignDialog.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/ui/dialog/keypair_details/KeyUIDSignDialog.cpp b/src/ui/dialog/keypair_details/KeyUIDSignDialog.cpp index f582df0b..7d3e3bd6 100644 --- a/src/ui/dialog/keypair_details/KeyUIDSignDialog.cpp +++ b/src/ui/dialog/keypair_details/KeyUIDSignDialog.cpp @@ -111,8 +111,14 @@ void KeyUIDSignDialog::slot_sign_key(bool clicked) { auto keys = GpgKeyGetter::GetInstance().GetKeys(key_ids); SPDLOG_INFO("key info got"); +#ifdef GPGFRONTEND_GUI_QT6 + auto expires = + std::make_unique<boost::posix_time::ptime>(boost::posix_time::from_time_t( + expires_edit_->dateTime().toSecsSinceEpoch())); +#else auto expires = std::make_unique<boost::posix_time::ptime>( boost::posix_time::from_time_t(expires_edit_->dateTime().toTime_t())); +#endif SPDLOG_INFO("sign start"); for (const auto& uid : *m_uids_) { |