1
0
mirror of https://github.com/astaxie/beego.git synced 2025-06-11 08:40:39 +00:00

Closes #2515 Autodetect timezone in NewOrmWithDB()

This commit is contained in:
2018-11-12 10:18:05 +01:00
committed by GitHub
parent 0333e26b3e
commit d02170e3cb

View File

@ -548,6 +548,9 @@ func NewOrmWithDB(driverName, aliasName string, db *sql.DB) (Ormer, error) {
al.Name = aliasName
al.DriverName = driverName
al.DB = db
detectTZ(al)
o := new(orm)
o.alias = al