aboutsummaryrefslogtreecommitdiffstats
path: root/src/core/model/GpgSubKey.cpp
diff options
context:
space:
mode:
authorsaturneric <[email protected]>2024-01-12 15:08:38 +0000
committersaturneric <[email protected]>2024-01-12 15:08:38 +0000
commit6983b5c1dd82d159236ebd06cf17f071cc9c1ee9 (patch)
treefc53f790e33546320b2ecd306a1a9ade6fbdfe7a /src/core/model/GpgSubKey.cpp
parentfix: slove a heap-use-after-free issue (diff)
downloadGpgFrontend-6983b5c1dd82d159236ebd06cf17f071cc9c1ee9.tar.gz
GpgFrontend-6983b5c1dd82d159236ebd06cf17f071cc9c1ee9.zip
refactor: remove boost and use QString instead of std::filesystem::path
Diffstat (limited to 'src/core/model/GpgSubKey.cpp')
-rw-r--r--src/core/model/GpgSubKey.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/core/model/GpgSubKey.cpp b/src/core/model/GpgSubKey.cpp
index ccf50e76..eaef1498 100644
--- a/src/core/model/GpgSubKey.cpp
+++ b/src/core/model/GpgSubKey.cpp
@@ -87,12 +87,12 @@ auto GpgSubKey::IsSecretKey() const -> bool { return subkey_ref_->secret; }
auto GpgSubKey::IsCardKey() const -> bool { return subkey_ref_->is_cardkey; }
-auto GpgSubKey::GetCreateTime() const -> boost::posix_time::ptime {
- return boost::posix_time::from_time_t(subkey_ref_->timestamp);
+auto GpgSubKey::GetCreateTime() const -> QDateTime {
+ return QDateTime::fromSecsSinceEpoch(subkey_ref_->timestamp);
}
-auto GpgSubKey::GetExpireTime() const -> boost::posix_time::ptime {
- return boost::posix_time::from_time_t(subkey_ref_->expires);
+auto GpgSubKey::GetExpireTime() const -> QDateTime {
+ return QDateTime::fromSecsSinceEpoch(subkey_ref_->expires);
}
} // namespace GpgFrontend