time bug fix

This commit is contained in:
WhiteBatman 2017-09-23 20:51:25 +08:00
parent 5017cabec6
commit e9f95a9f8b
1 changed files with 1 additions and 0 deletions

View File

@ -1546,6 +1546,7 @@ func (engine *Engine) formatTime(sqlTypeName string, t time.Time) (v interface{}
v = t.Format("2006-01-02")
case core.DateTime, core.TimeStamp:
v = t.Format("2006-01-02 15:04:05.999")
if engine.dialect.DBType() == "sqlite3" {
v = t.UTC().Format("2006-01-02 15:04:05.999")
}