Skip to content

Commit

Permalink
Use time.Format in doc, use time.Kitchen const as default
Browse files Browse the repository at this point in the history
  • Loading branch information
ginger51011 committed Jan 16, 2024
1 parent 6a4800b commit f031538
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion internal/config/defaults.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import (
"os"
"path"
"runtime"
"time"

"github.com/spf13/afero"
)
Expand Down Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion internal/config/globals.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
)

Expand Down

0 comments on commit f031538

Please sign in to comment.