summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--commands/commandeer.go7
1 files changed, 4 insertions, 3 deletions
diff --git a/commands/commandeer.go b/commands/commandeer.go
index 444d75987..5e5e1b3ab 100644
--- a/commands/commandeer.go
+++ b/commands/commandeer.go
@@ -369,12 +369,13 @@ func (c *commandeer) loadConfig() error {
c.configFiles = configFiles
var ok bool
+ loc := time.Local
c.languages, ok = c.Cfg.Get("languagesSorted").(langs.Languages)
- if !ok {
- panic("languages not configured")
+ if ok {
+ loc = langs.GetLocation(c.languages[0])
}
- err = c.initClock(langs.GetLocation(c.languages[0]))
+ err = c.initClock(loc)
if err != nil {
return err
}