fix bug on formatTime

fix bug on formatTime
This commit is contained in:
WhiteBatman 2017-05-04 20:32:54 +08:00 committed by GitHub
parent d52a762fba
commit 85ba0388d7
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 {