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}} 服务注册