time bug fix
This commit is contained in:
parent
5017cabec6
commit
e9f95a9f8b
|
@ -1546,6 +1546,7 @@ func (engine *Engine) formatTime(sqlTypeName string, t time.Time) (v interface{}
|
||||||
v = t.Format("2006-01-02")
|
v = t.Format("2006-01-02")
|
||||||
case core.DateTime, core.TimeStamp:
|
case core.DateTime, core.TimeStamp:
|
||||||
v = t.Format("2006-01-02 15:04:05.999")
|
v = t.Format("2006-01-02 15:04:05.999")
|
||||||
|
|
||||||
if engine.dialect.DBType() == "sqlite3" {
|
if engine.dialect.DBType() == "sqlite3" {
|
||||||
v = t.UTC().Format("2006-01-02 15:04:05.999")
|
v = t.UTC().Format("2006-01-02 15:04:05.999")
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue