From bb59fcc543bc11a0f59c5acb0cd3514439576fe3 Mon Sep 17 00:00:00 2001 From: DarthPestilane Date: Thu, 28 Jun 2018 16:03:10 +0800 Subject: [PATCH] sign codes according to contributing rules. --- engine.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engine.go b/engine.go index 92519b49..5ba8c372 100644 --- a/engine.go +++ b/engine.go @@ -1554,7 +1554,7 @@ func (engine *Engine) formatTime(sqlTypeName string, t time.Time) (v interface{} v = s[11:19] case core.Date: v = t.Format("2006-01-02") - case core.DateTime, core.TimeStamp, core.Varchar: + case core.DateTime, core.TimeStamp, core.Varchar: // !DarthPestilane! format time when sqlTypeName is core.Varchar. v = t.Format("2006-01-02 15:04:05") case core.TimeStampz: if engine.dialect.DBType() == core.MSSQL {