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 @@ - - 详情 + 详情   + 设置