DateFormats: Fix reading correct setting key for use_browser_locale (#36428) (#36434)

(cherry picked from commit 4932b9dfa4)

Co-authored-by: Torkel Ödegaard <torkel@grafana.org>
This commit is contained in:
Grot (@grafanabot)
2021-07-05 15:27:35 +02:00
committed by GitHub
co-authored by Torkel Ödegaard
parent ab26f9c820
commit 61ea316f10
+1 -1
View File
@@ -47,7 +47,7 @@ func (cfg *Cfg) readDateFormats() {
cfg.DateFormats.Interval.Day = valueAsString(dateFormats, "interval_day", "YYYY-MM-DD")
cfg.DateFormats.Interval.Month = valueAsString(dateFormats, "interval_month", "YYYY-MM")
cfg.DateFormats.Interval.Year = "YYYY"
cfg.DateFormats.UseBrowserLocale = dateFormats.Key("date_format_use_browser_locale").MustBool(false)
cfg.DateFormats.UseBrowserLocale = dateFormats.Key("use_browser_locale").MustBool(false)
timezone, err := valueAsTimezone(dateFormats, "default_timezone")
if err != nil {