when logging, format timestamps more compactly, without needing quoting

This commit is contained in:
Mechiel Lukkien 2023-12-14 12:56:40 +01:00
parent d1b66035a9
commit 920b858da7
No known key found for this signature in database

View file

@ -372,6 +372,8 @@ func stringValue(iscid, nested bool, v any) string {
return "[" + strings.Join(r, ",") + "]"
case error:
return r.Error()
case time.Time:
return r.Format(time.RFC3339)
}
rv := reflect.ValueOf(v)