From 4932b9dfa47d301ef4d051b43b957189545b3a21 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torkel=20=C3=96degaard?= Date: Mon, 5 Jul 2021 14:45:36 +0200 Subject: [PATCH] DateFormats: Fix reading correct setting key for use_browser_locale (#36428) --- 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 {