diff --git a/internal/config/defaults.go b/internal/config/defaults.go index 87304da..c3c172d 100644 --- a/internal/config/defaults.go +++ b/internal/config/defaults.go @@ -6,6 +6,7 @@ import ( "os" "path" "runtime" + "time" "github.com/spf13/afero" ) @@ -34,7 +35,7 @@ var defOpts = map[string]map[string]interface{}{ "nocolor": defNoColor, "use_date_filename": true, "docker_logging": false, - "console_time_format": "3:04PM", + "console_time_format": time.Kitchen, }, "http": { "use_unix_socket": false, diff --git a/internal/config/globals.go b/internal/config/globals.go index aaecc7c..33f5c03 100644 --- a/internal/config/globals.go +++ b/internal/config/globals.go @@ -41,7 +41,7 @@ var ( // CatchAll when true will cause HellPot to respond to all paths. // Note that this will override MakeRobots. CatchAll bool - // ConsoleTimeFormat sets the time format for the console. The string must be parseable by time.Parse(). + // ConsoleTimeFormat sets the time format for the console. The string is passed to time.Format() down the line. ConsoleTimeFormat string )