From d9c32437c99e7fb5eca412e01548465e22921fd1 Mon Sep 17 00:00:00 2001 From: d1slike Date: Wed, 15 Jul 2020 17:37:22 +0300 Subject: [PATCH] remove utc --- controller/config.go | 2 +- subs/client.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/controller/config.go b/controller/config.go index 2484b12..45faa76 100644 --- a/controller/config.go +++ b/controller/config.go @@ -69,7 +69,7 @@ func (c *config) CreateUpdateConfig(config domain.CreateUpdateConfigRequest) (*d Config: config.Config, Unsafe: config.Unsafe, VersionId: state.GenerateId(), - VersionCreateAt: time.Now().UTC(), + VersionCreateAt: time.Now(), } if config.Id == "" { upsertConfig.Config.Id = state.GenerateId() diff --git a/subs/client.go b/subs/client.go index fc471a6..4bed5fd 100644 --- a/subs/client.go +++ b/subs/client.go @@ -114,7 +114,7 @@ func (h *SocketEventHandler) handleConfigSchema(conn etp.Conn, data []byte) []by Create: true, Unsafe: true, VersionId: state.GenerateId(), - VersionCreateAt: time.Now().UTC(), + VersionCreateAt: time.Now(), } command := cluster.PrepareUpsertConfigCommand(upsertConfig)