From 6983b5c1dd82d159236ebd06cf17f071cc9c1ee9 Mon Sep 17 00:00:00 2001 From: saturneric Date: Fri, 12 Jan 2024 23:08:38 +0800 Subject: refactor: remove boost and use QString instead of std::filesystem::path --- src/ui/dialog/keypair_details/KeyUIDSignDialog.cpp | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'src/ui/dialog/keypair_details/KeyUIDSignDialog.cpp') diff --git a/src/ui/dialog/keypair_details/KeyUIDSignDialog.cpp b/src/ui/dialog/keypair_details/KeyUIDSignDialog.cpp index 47b8eb93..55cafe55 100644 --- a/src/ui/dialog/keypair_details/KeyUIDSignDialog.cpp +++ b/src/ui/dialog/keypair_details/KeyUIDSignDialog.cpp @@ -109,14 +109,7 @@ void KeyUIDSignDialog::slot_sign_key(bool clicked) { auto keys = GpgKeyGetter::GetInstance().GetKeys(key_ids); GF_UI_LOG_DEBUG("key info got"); -#ifdef GPGFRONTEND_GUI_QT6 - auto expires = - std::make_unique(boost::posix_time::from_time_t( - expires_edit_->dateTime().toSecsSinceEpoch())); -#else - auto expires = std::make_unique( - boost::posix_time::from_time_t(expires_edit_->dateTime().toTime_t())); -#endif + auto expires = std::make_unique(expires_edit_->dateTime()); GF_UI_LOG_DEBUG("sign start"); for (const auto& uid : *m_uids_) { -- cgit v1.2.3