From 66f781ab21e9cb63ab6e04ad9ddf2557c12db4f9 Mon Sep 17 00:00:00 2001 From: GoEdgeLab Date: Tue, 12 Oct 2021 14:39:13 +0800 Subject: [PATCH] =?UTF-8?q?=E9=9B=86=E7=BE=A4=E9=9D=9E=E4=B8=8A=E6=B5=B7?= =?UTF-8?q?=E6=97=B6=E5=8C=BA=E7=9A=84=E5=9C=A8=E5=88=97=E8=A1=A8=E9=87=8C?= =?UTF-8?q?=E6=98=BE=E7=A4=BA=E6=97=B6=E5=8C=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/web/actions/default/clusters/index.go | 5 +++++ web/views/@default/clusters/index.html | 10 ++++++++-- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/internal/web/actions/default/clusters/index.go b/internal/web/actions/default/clusters/index.go index 8d2dcfc8..2662db04 100644 --- a/internal/web/actions/default/clusters/index.go +++ b/internal/web/actions/default/clusters/index.go @@ -121,6 +121,10 @@ func (this *IndexAction) RunGet(params struct { this.ErrorPage(err) } + if cluster.TimeZone == nodeconfigs.DefaultTimeZoneLocation { + cluster.TimeZone = "" + } + clusterMaps = append(clusterMaps, maps.Map{ "id": cluster.Id, "name": cluster.Name, @@ -132,6 +136,7 @@ func (this *IndexAction) RunGet(params struct { "dnsName": cluster.DnsName, "dnsDomainName": dnsDomainName, "countServers": countServersResp.Count, + "timeZone": cluster.TimeZone, }) } } diff --git a/web/views/@default/clusters/index.html b/web/views/@default/clusters/index.html index 36f37329..39285c70 100644 --- a/web/views/@default/clusters/index.html +++ b/web/views/@default/clusters/index.html @@ -41,7 +41,12 @@ - {{cluster.name}} + + {{cluster.name}} +
+ 时区:{{cluster.timeZone}} +
+ {{cluster.countAllNodes}} - @@ -66,7 +71,8 @@ - - 详情 + 详情   + 设置