mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
fix: sqlite3 and storing/displaying dates used wrong timezone, fixes #8996
This commit is contained in:
parent
def45f55da
commit
7031f7e772
@ -146,7 +146,7 @@ func getEngine() (*xorm.Engine, error) {
|
|||||||
DbCfg.Path = filepath.Join(setting.DataPath, DbCfg.Path)
|
DbCfg.Path = filepath.Join(setting.DataPath, DbCfg.Path)
|
||||||
}
|
}
|
||||||
os.MkdirAll(path.Dir(DbCfg.Path), os.ModePerm)
|
os.MkdirAll(path.Dir(DbCfg.Path), os.ModePerm)
|
||||||
cnnstr = "file:" + DbCfg.Path + "?cache=shared&mode=rwc&_loc=Local"
|
cnnstr = "file:" + DbCfg.Path + "?cache=shared&mode=rwc"
|
||||||
default:
|
default:
|
||||||
return nil, fmt.Errorf("Unknown database type: %s", DbCfg.Type)
|
return nil, fmt.Errorf("Unknown database type: %s", DbCfg.Type)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user