mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
DateFormats: Fix reading correct setting key for use_browser_locale (#36428)
This commit is contained in:
parent
89ba607382
commit
4932b9dfa4
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user