aboutsummaryrefslogtreecommitdiffstats
path: root/src/core/function/result_analyse/GpgVerifyResultAnalyse.cpp
diff options
context:
space:
mode:
authorsaturneric <[email protected]>2024-02-26 11:55:50 +0000
committersaturneric <[email protected]>2024-02-26 11:55:50 +0000
commit17b37d58534c1577be6fdfccc3ad6168d11cc5e4 (patch)
tree658a59a517fbcb464e8a6eb5ff04d9a4996d0b34 /src/core/function/result_analyse/GpgVerifyResultAnalyse.cpp
parentfix: improve icons and logo style (diff)
downloadGpgFrontend-17b37d58534c1577be6fdfccc3ad6168d11cc5e4.tar.gz
GpgFrontend-17b37d58534c1577be6fdfccc3ad6168d11cc5e4.zip
fix: show the real UTC datetime
Diffstat (limited to 'src/core/function/result_analyse/GpgVerifyResultAnalyse.cpp')
-rw-r--r--src/core/function/result_analyse/GpgVerifyResultAnalyse.cpp11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/core/function/result_analyse/GpgVerifyResultAnalyse.cpp b/src/core/function/result_analyse/GpgVerifyResultAnalyse.cpp
index df6b58b0..0a098a93 100644
--- a/src/core/function/result_analyse/GpgVerifyResultAnalyse.cpp
+++ b/src/core/function/result_analyse/GpgVerifyResultAnalyse.cpp
@@ -55,11 +55,10 @@ void GpgFrontend::GpgVerifyResultAnalyse::doAnalyse() {
auto *sign = result->signatures;
stream_ << "-> " << tr("Signed On") << "(" << tr("UTC") << ")"
- << ": " << QDateTime::fromSecsSinceEpoch(sign->timestamp).toString()
- << Qt::endl;
+ << ": " << GetUTCDateByTimestamp(sign->timestamp) << Qt::endl;
stream_ << "-> " << tr("Signed On") << "(" << tr("Localized") << ")"
- << ": " << GetFormatedDateByTimestamp(sign->timestamp) << Qt::endl;
+ << ": " << GetLocalizedDateByTimestamp(sign->timestamp) << Qt::endl;
stream_ << Qt::endl << "## " << tr("Signatures List") << ":" << Qt::endl;
stream_ << Qt::endl;
@@ -190,7 +189,8 @@ auto GpgFrontend::GpgVerifyResultAnalyse::print_signer_without_key(
<< Qt::endl;
stream << "- " << tr("Hash Algo") << ": " << sign.GetHashAlgo() << Qt::endl;
stream << "- " << tr("Sign Date") << "(" << tr("UTC") << ")"
- << ": " << sign.GetCreateTime().toString() << Qt::endl;
+ << ": " << QLocale().toString(sign.GetCreateTime().toUTC())
+ << Qt::endl;
stream << "- " << tr("Sign Date") << "(" << tr("Localized") << ")"
<< ": " << QLocale().toString(sign.GetCreateTime()) << Qt::endl;
return true;
@@ -235,7 +235,8 @@ auto GpgFrontend::GpgVerifyResultAnalyse::print_signer(QTextStream &stream,
<< Qt::endl;
stream << "- " << tr("Hash Algo") << ": " << sign.GetHashAlgo() << Qt::endl;
stream << "- " << tr("Sign Date") << "(" << tr("UTC") << ")"
- << ": " << sign.GetCreateTime().toString() << Qt::endl;
+ << ": " << QLocale().toString(sign.GetCreateTime().toUTC())
+ << Qt::endl;
stream << "- " << tr("Sign Date") << "(" << tr("Localized") << ")"
<< ": " << QLocale().toString(sign.GetCreateTime()) << Qt::endl;
stream << Qt::endl;