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

This commit is contained in:
Torkel Ödegaard 2021-07-05 14:45:36 +02:00 committed by GitHub
parent 89ba607382
commit 4932b9dfa4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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 {