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
1 changed files with 3 additions and 0 deletions

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