From 3366a31e9368c9b5c302558766c361b81cae730c Mon Sep 17 00:00:00 2001 From: mmetc <92726601+mmetc@users.noreply.github.com> Date: Mon, 12 Dec 2022 10:01:11 +0100 Subject: [PATCH] set cscli log timestamp to 24h (#1917) (#1921) --- cmd/crowdsec-cli/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/crowdsec-cli/main.go b/cmd/crowdsec-cli/main.go index 6aeb9a2e5..fa687098d 100644 --- a/cmd/crowdsec-cli/main.go +++ b/cmd/crowdsec-cli/main.go @@ -52,7 +52,7 @@ func initConfig() { } else if err_lvl { log.SetLevel(log.ErrorLevel) } - logFormatter := &log.TextFormatter{TimestampFormat: "02-01-2006 03:04:05 PM", FullTimestamp: true} + logFormatter := &log.TextFormatter{TimestampFormat: "02-01-2006 15:04:05", FullTimestamp: true} log.SetFormatter(logFormatter) if !inSlice(os.Args[1], NoNeedConfig) {