From e31e464cb97300c07ba504e9e0df26840635a0fe Mon Sep 17 00:00:00 2001 From: Nick Korotysh Date: Sat, 14 Dec 2024 12:05:19 +0100 Subject: [PATCH] set custom time zone only if required fixes bug: - enable cusom time zone, apply settings (close dialog) - reopen settings and disable custome time zone, apply - retart the app -> custom time zone is used --- app/core/application.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/core/application.cpp b/app/core/application.cpp index 2a5399e..8499c6c 100644 --- a/app/core/application.cpp +++ b/app/core/application.cpp @@ -77,7 +77,8 @@ void Application::configureWindow(size_t i) clock->setIgnoreAX(acfg.getIgnoreAX()); clock->setIgnoreAY(acfg.getIgnoreAY()); - clock->setTimeZone(gcfg.getTimeZone()); + if (!gcfg.getShowLocalTime()) + clock->setTimeZone(gcfg.getTimeZone()); // load skin if (i == 0 || _cfg->global().getAppearancePerInstance()) {