Remove fractions of seconds

This commit is contained in:
Viktor Liu 2025-01-03 15:18:36 +01:00
parent fc799effda
commit c68be6b61b

View File

@ -87,7 +87,7 @@ func (l *Logger) formatMessage(buf *[]byte, level Level, format string, args ...
*buf = (*buf)[:0]
// Timestamp
*buf = time.Now().AppendFormat(*buf, "2006-01-02T15:04:05.000000-07:00")
*buf = time.Now().AppendFormat(*buf, "2006-01-02T15:04:05-07:00")
*buf = append(*buf, ' ')
// Level