Skip to content

Commit

Permalink
Fix to use 24 hour clock
Browse files Browse the repository at this point in the history
  • Loading branch information
jacksontj committed Sep 27, 2018
1 parent 008b3a1 commit 7bd25d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion logging/logging.go
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down

0 comments on commit 7bd25d6

Please sign in to comment.