fix: timezone parse time issue

This commit is contained in:
2024-03-29 10:09:43 +08:00
parent 5b385a5342
commit c6fbee9a76
6 changed files with 72 additions and 32 deletions

View File

@@ -31,7 +31,7 @@ func init() {
log.Infof("========================= OMC sshsvc startup =========================")
log.Infof("OMC sshsvc version: %s %s %s", global.Version, global.BuildTime, global.GoVer)
db := conf.Database
err := dborm.InitDbClient(db.Type, db.User, db.Password, db.Host, db.Port, db.Name)
err := dborm.InitDbClient(db.Type, db.User, db.Password, db.Host, db.Port, db.Name, db.ConnParam)
if err != nil {
fmt.Println("dborm.initDbClient err:", err)
os.Exit(1)