From 1f1d871837978f44b274b474fef6a3bbef527dae Mon Sep 17 00:00:00 2001 From: Ryooooooga Date: Fri, 13 May 2022 21:56:07 +0900 Subject: feat: add ability to customize time format --- pkg/config/user_config.go | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'pkg/config') diff --git a/pkg/config/user_config.go b/pkg/config/user_config.go index 5c90f85a7..6ff3b36a1 100644 --- a/pkg/config/user_config.go +++ b/pkg/config/user_config.go @@ -1,5 +1,9 @@ package config +import ( + "time" +) + type UserConfig struct { Gui GuiConfig `yaml:"gui"` Git GitConfig `yaml:"git"` @@ -36,6 +40,7 @@ type GuiConfig struct { ExpandFocusedSidePanel bool `yaml:"expandFocusedSidePanel"` MainPanelSplitMode string `yaml:"mainPanelSplitMode"` Language string `yaml:"language"` + TimeFormat string `yaml:"timeFormat"` Theme ThemeConfig `yaml:"theme"` CommitLength CommitLengthConfig `yaml:"commitLength"` SkipNoStagedFilesWarning bool `yaml:"skipNoStagedFilesWarning"` @@ -341,6 +346,7 @@ func GetDefaultConfig() *UserConfig { ExpandFocusedSidePanel: false, MainPanelSplitMode: "flexible", Language: "auto", + TimeFormat: time.RFC822, Theme: ThemeConfig{ LightTheme: false, ActiveBorderColor: []string{"green", "bold"}, -- cgit v1.2.3