diff --git a/internal/db/models/ns_cluster_model.go b/internal/db/models/ns_cluster_model.go index c0be987f..dd2bd8f1 100644 --- a/internal/db/models/ns_cluster_model.go +++ b/internal/db/models/ns_cluster_model.go @@ -18,6 +18,7 @@ type NSCluster struct { DdosProtection dbs.JSON `field:"ddosProtection"` // DDoS防护设置 Hosts dbs.JSON `field:"hosts"` // DNS主机地址 AutoRemoteStart bool `field:"autoRemoteStart"` // 自动远程启动 + TimeZone string `field:"timeZone"` // 时区 } type NSClusterOperator struct { @@ -35,6 +36,7 @@ type NSClusterOperator struct { DdosProtection any // DDoS防护设置 Hosts any // DNS主机地址 AutoRemoteStart any // 自动远程启动 + TimeZone any // 时区 } func NewNSClusterOperator() *NSClusterOperator { diff --git a/internal/db/models/ns_node_dao.go b/internal/db/models/ns_node_dao.go index d9a80b06..4c079340 100644 --- a/internal/db/models/ns_node_dao.go +++ b/internal/db/models/ns_node_dao.go @@ -403,6 +403,7 @@ func (this *NSNodeDAO) ComposeNodeConfig(tx *dbs.Tx, nodeId int64) (*dnsconfigs. NodeId: node.UniqueId, Secret: node.Secret, ClusterId: int64(node.ClusterId), + TimeZone: cluster.TimeZone, } // 访问日志