From 77db239de0ef85cc485fb00e4f1a6f46e5034a42 Mon Sep 17 00:00:00 2001 From: Ladislav Foldyna Date: Mon, 15 Apr 2024 12:14:37 +0200 Subject: [PATCH] Improved a removing timezone from LongFormat --- core/LogLocale.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/LogLocale.cpp b/core/LogLocale.cpp index f2462c4c..af74c939 100644 --- a/core/LogLocale.cpp +++ b/core/LogLocale.cpp @@ -12,7 +12,7 @@ QString LogLocale::formatTimeLongWithoutTZ() const { FCT_IDENTIFICATION; - QString ret = timeFormat(QLocale::LongFormat).remove(" t"); + QString ret = timeFormat(QLocale::LongFormat).replace("(t)", "").replace(" t", "").replace("t", ""); qCDebug(runtime) << "format:" << ret; return ret;