From 65812bc2e040f362cfaa50dc73eea3d280d76e2f Mon Sep 17 00:00:00 2001
From: "huangsimin@fusen.cn" <huangsimin@fusen.cn>
Date: Wed, 17 Jan 2024 17:26:13 +0800
Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=85=A8=E5=B1=80utc?=
 =?UTF-8?q?=E8=AE=BE=E7=BD=AE=E6=96=B9=E6=B3=95?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 goutils/proto_build/tpls/main_gen.tpl | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/goutils/proto_build/tpls/main_gen.tpl b/goutils/proto_build/tpls/main_gen.tpl
index 02f5bf4..8822e4b 100644
--- a/goutils/proto_build/tpls/main_gen.tpl
+++ b/goutils/proto_build/tpls/main_gen.tpl
@@ -6,9 +6,14 @@ import (
 	"{{$.ProjectName}}/server/logics/{{.LogicPackageName}}"
 	{{- end}}
 
+	"time"
 	"google.golang.org/grpc"
 )
 
+func init() {
+	time.Local = time.UTC
+}
+
 func MainRegisterServer(s *grpc.Server) {
     {{range .StructServiceNames}}
 	    service.Register{{.StructServiceName}}Server(s, &{{.LogicPackageName}}.{{.StructServiceName}}LogicGrpc{}) // {{.LogicPackageName}} 服务注册