From 0f83a94bd42a56c06bbea5681c6a2ef0cb5adf29 Mon Sep 17 00:00:00 2001 From: Ladislav Foldyna Date: Wed, 1 Jan 2025 18:42:57 +0100 Subject: [PATCH] QT6: Fixed issue with unpredictable timezone format --- core/LogLocale.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/core/LogLocale.cpp b/core/LogLocale.cpp index 8574d273..b096f6d4 100644 --- a/core/LogLocale.cpp +++ b/core/LogLocale.cpp @@ -32,8 +32,12 @@ QString LogLocale::formatTimeLong() const { FCT_IDENTIFICATION; - - QString ret = formatTimeLongWithoutTZ().append(" t"); + QString ret = formatTimeLongWithoutTZ() +#if (QT_VERSION < QT_VERSION_CHECK(6, 5, 0)) + .append(" t"); +#else + .append(" ttt"); +#endif qCDebug(runtime) << "format:" << ret; return ret;