mirror of
https://github.com/astaxie/beego.git
synced 2024-11-26 02:51:28 +00:00
Closes #2515 Autodetect timezone in NewOrmWithDB()
This commit is contained in:
parent
0333e26b3e
commit
d02170e3cb
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user