12 Hour time in logs

Howdy all, might have missed it, is there a way to write to the log using 12 hour instead of 24 hour notation, thanks

You can change the --stats-one-line date format

 --stats-one-line-date-format string   Enables --stats-one-line-date and uses custom formatted date. Enclose date string in double quotes (").

See https://golang.org/pkg/time/#Time.Format

The log formats themselves are fixed with ISO format though. You can change them slightly with --log-format but that won't get you 12 hour clock.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.