From 30e88f42a6d8d29c374bbcc34620005eada54f19 Mon Sep 17 00:00:00 2001 From: liguang1 <751885226@qq.com> Date: Fri, 28 Jul 2023 20:33:23 +0800 Subject: [PATCH] bugfix ui timezone --- .../prestosql/queryeditorui/execution/ClientSessionFactory.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/presto-main/src/main/java/io/prestosql/queryeditorui/execution/ClientSessionFactory.java b/presto-main/src/main/java/io/prestosql/queryeditorui/execution/ClientSessionFactory.java index fce4de569..5da15dad0 100644 --- a/presto-main/src/main/java/io/prestosql/queryeditorui/execution/ClientSessionFactory.java +++ b/presto-main/src/main/java/io/prestosql/queryeditorui/execution/ClientSessionFactory.java @@ -49,7 +49,7 @@ public class ClientSessionFactory this.source = source; this.catalog = catalog; this.defaultSchema = defaultSchema; - this.timeZoneId = TimeZone.getTimeZone("UTC").toZoneId(); + this.timeZoneId = TimeZone.getDefault().toZoneId(); this.locale = Locale.getDefault(); this.clientSessionTimeout = firstNonNull(clientSessionTimeout, succinctDuration(1, MINUTES)); } -- Gitee