From 8079cad870b67a5eb0ed7fbcfb91b58fc2297756 Mon Sep 17 00:00:00 2001 From: xormplus Date: Thu, 4 May 2017 20:24:48 +0800 Subject: [PATCH] fix bug on formatTime --- engine.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engine.go b/engine.go index a788c117..e21738be 100644 --- a/engine.go +++ b/engine.go @@ -1572,7 +1572,7 @@ func (engine *Engine) formatTime(tz *time.Location, sqlTypeName string, t time.T } else if engine.dialect.DBType() == "sqlite3" { v = t.UTC().Format("2006-01-02 15:04:05") } else { - v = t.Format("2006-01-02 15:04:05") + v = t.Format("2006-01-02 15:04:05.999") } case core.TimeStampz: if engine.dialect.DBType() == core.MSSQL {