fix bug on formatTime

This commit is contained in:
xormplus 2017-05-04 20:24:48 +08:00
parent d52a762fba
commit 8079cad870
1 changed files with 1 additions and 1 deletions

View File

@ -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 {