Unverified Commit cfe54a02 authored by astaxie's avatar astaxie Committed by GitHub

Merge pull request #3388 from s00500/develop

Closes #2515 Autodetect timezone in NewOrmWithDB()
parents 55f390d0 d02170e3
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment