diff options
author | saturneric <[email protected]> | 2024-02-26 11:55:50 +0000 |
---|---|---|
committer | saturneric <[email protected]> | 2024-02-26 11:55:50 +0000 |
commit | 17b37d58534c1577be6fdfccc3ad6168d11cc5e4 (patch) | |
tree | 658a59a517fbcb464e8a6eb5ff04d9a4996d0b34 /src/ui/main_window/MainWindowSlotFunction.cpp | |
parent | fix: improve icons and logo style (diff) | |
download | GpgFrontend-17b37d58534c1577be6fdfccc3ad6168d11cc5e4.tar.gz GpgFrontend-17b37d58534c1577be6fdfccc3ad6168d11cc5e4.zip |
fix: show the real UTC datetime
Diffstat (limited to '')
-rw-r--r-- | src/ui/main_window/MainWindowSlotFunction.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/ui/main_window/MainWindowSlotFunction.cpp b/src/ui/main_window/MainWindowSlotFunction.cpp index 6f0a99fb..61c5de56 100644 --- a/src/ui/main_window/MainWindowSlotFunction.cpp +++ b/src/ui/main_window/MainWindowSlotFunction.cpp @@ -101,8 +101,9 @@ void MainWindow::slot_append_keys_create_datetime() { auto create_datetime_format_str_local = QLocale().toString(key.GetCreateTime()) + " (" + tr("Localize") + ") " + "\n"; - auto create_datetime_format_str = key.GetCreateTime().toString(Qt::ISODate) + - " (" + tr("UTC") + ") " + "\n "; + auto create_datetime_format_str = + QLocale().toString(key.GetCreateTime().toUTC()) + " (" + tr("UTC") + + ") " + "\n "; edit_->SlotAppendText2CurTextPage(create_datetime_format_str_local + create_datetime_format_str); } @@ -125,7 +126,7 @@ void MainWindow::slot_append_keys_expire_datetime() { QLocale().toString(key.GetCreateTime()) + " (" + tr("Local Time") + ") " + "\n"; auto expire_datetime_format_str = - key.GetCreateTime().toString(Qt::ISODate) + " (UTC) " + "\n"; + QLocale().toString(key.GetCreateTime().toUTC()) + " (UTC) " + "\n"; edit_->SlotAppendText2CurTextPage(expire_datetime_format_str_local + expire_datetime_format_str); |