From 7bd25d6ea0a529b72ef13d5ea3a4dac459b5564f Mon Sep 17 00:00:00 2001 From: Thomas Jackson Date: Thu, 27 Sep 2018 10:15:50 -0700 Subject: [PATCH] Fix to use 24 hour clock --- logging/logging.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/logging/logging.go b/logging/logging.go index 78fc4b5e6..7f28ed1a8 100644 --- a/logging/logging.go +++ b/logging/logging.go @@ -25,7 +25,7 @@ type ApacheLogRecord struct { } func (r *ApacheLogRecord) Log(out io.Writer) { - timeFormatted := r.Time.Format("02/Jan/2006 03:04:05") + timeFormatted := r.Time.Format("02/Jan/2006 15:04:05") requestLine := fmt.Sprintf("%s %s %s", r.Method, r.URI, r.Protocol) fmt.Fprintf(out, ApacheFormatPattern, r.IP, timeFormatted, requestLine, r.Status, r.ResponseBytes, r.ElapsedTime.Seconds())