1
0
mirror of https://github.com/astaxie/beego.git synced 2024-11-22 18:10:54 +00:00

Closes #2515 Autodetect timezone in NewOrmWithDB()

This commit is contained in:
Lukas Bachschwell 2018-11-12 10:18:05 +01:00 committed by GitHub
parent 0333e26b3e
commit d02170e3cb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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