From 7ee1e02877b013e87e23e5e205abade9406f3f39 Mon Sep 17 00:00:00 2001 From: zilongliu Date: Fri, 18 Feb 2022 18:34:18 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3=E9=83=A8=E5=88=86=E6=97=B6?= =?UTF-8?q?=E9=97=B4=E4=B8=8D=E6=98=AF=E4=B8=AD=E5=9B=BD=E6=97=B6=E5=8C=BA?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- conf/app.conf | 2 +- internal/models/models.go | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/conf/app.conf b/conf/app.conf index 393fff1..1d47ae1 100644 --- a/conf/app.conf +++ b/conf/app.conf @@ -19,7 +19,7 @@ level = 7 separate = ["error"] [DB] -url = root:root@tcp(127.0.0.1:3306)/atomci?charset=utf8mb4 +url = root:root@tcp(127.0.0.1:3306)/atomci?charset=utf8mb4&loc=Local debug = false rowsLimit = 5000 maxIdelConns = 100 diff --git a/internal/models/models.go b/internal/models/models.go index 0f4a5c5..cdc7e70 100644 --- a/internal/models/models.go +++ b/internal/models/models.go @@ -42,11 +42,8 @@ const TableNamePrefix = "atom" // NewAddons basic fields func NewAddons() Addons { - timeNow, _ := time.Parse("2006-01-02 15:04:05", time.Now().Local().Format("2006-01-02 15:04:05")) return Addons{ Deleted: false, - CreateAt: timeNow, - UpdateAt: timeNow, DeleteAt: nil, } } -- GitLab