mirror of
https://github.com/astaxie/beego.git
synced 2024-11-29 17:01:27 +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.Name = aliasName
|
||||||
al.DriverName = driverName
|
al.DriverName = driverName
|
||||||
|
al.DB = db
|
||||||
|
|
||||||
|
detectTZ(al)
|
||||||
|
|
||||||
o := new(orm)
|
o := new(orm)
|
||||||
o.alias = al
|
o.alias = al
|
||||||
|
Loading…
Reference in New Issue
Block a user