xormplus hace 8 años
padre
commit
8bed556605
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      engine.go

+ 1 - 1
engine.go

@@ -1581,7 +1581,7 @@ func (engine *Engine) formatTime(tz *time.Location, sqlTypeName string, t time.T
 		} else if engine.dialect.DBType() == "sqlite3" {
 		} else if engine.dialect.DBType() == "sqlite3" {
 			v = t.UTC().Format("2006-01-02 15:04:05")
 			v = t.UTC().Format("2006-01-02 15:04:05")
 		} else {
 		} else {
-			v = t.Format("2006-01-02 15:04:05")
+			v = t.Format("2006-01-02 15:04:05.999")
 		}
 		}
 	case core.TimeStampz:
 	case core.TimeStampz:
 		if engine.dialect.DBType() == core.MSSQL {
 		if engine.dialect.DBType() == core.MSSQL {