|
@@ -64,6 +64,9 @@ func connectDb(dsn, aliasName string, newLogger logger.Interface, dbMap map[stri
|
|
var dialector gorm.Dialector
|
|
var dialector gorm.Dialector
|
|
switch utils.DbDriverName {
|
|
switch utils.DbDriverName {
|
|
case utils.DbDriverByMysql:
|
|
case utils.DbDriverByMysql:
|
|
|
|
+ if !strings.Contains(dsn, `parseTime`) {
|
|
|
|
+ dsn += `&parseTime=true`
|
|
|
|
+ }
|
|
dialector = mysql.Open(dsn)
|
|
dialector = mysql.Open(dsn)
|
|
case utils.DbDriverByDm:
|
|
case utils.DbDriverByDm:
|
|
dialector = dm.Open(dsn)
|
|
dialector = dm.Open(dsn)
|