Dashboard: Support configuring default timezone via config file (#27404)

Add a default timezone that the administrator can set in the settings.
This setting is be used as default for the users timezone preference.
Can be used when creating Grafana instances without administrator
intervention, in order to give user the correct default timezone.

Fixes #25654

(cherry picked from commit 39eba5065b)
This commit is contained in:
Wouter Smeenk
2020-09-17 10:44:02 +02:00
committed by Hugo Häggmark
parent cfc13f7e30
commit a4689e646a
9 changed files with 94 additions and 16 deletions
+1
View File
@@ -102,6 +102,7 @@ func (ss *SqlStore) Init() error {
// Register handlers
ss.addUserQueryAndCommandHandlers()
ss.addAlertNotificationUidByIdHandler()
ss.addPreferencesQueryAndCommandHandlers()
err = ss.logOrgsNotice()
if err != nil {