未验证 提交 3318260e 编写于 作者: C colynn.liu 提交者: GitHub

Merge pull request #85 from liuzilong66666/master

解决部分时间不是中国时区的问题
......@@ -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
......
......@@ -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,
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册