From 61ea316f10d2cd5a6897c42134d00734f23127ce Mon Sep 17 00:00:00 2001 From: "Grot (@grafanabot)" <43478413+grafanabot@users.noreply.github.com> Date: Mon, 5 Jul 2021 15:27:35 +0200 Subject: [PATCH] DateFormats: Fix reading correct setting key for use_browser_locale (#36428) (#36434) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit (cherry picked from commit 4932b9dfa47d301ef4d051b43b957189545b3a21) Co-authored-by: Torkel Ödegaard --- pkg/setting/date_formats.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/setting/date_formats.go b/pkg/setting/date_formats.go index a3921a5cea9..f9a4ce40632 100644 --- a/pkg/setting/date_formats.go +++ b/pkg/setting/date_formats.go @@ -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 {