Skip to content

Commit

Permalink
fix: send up to nanosecond precision
Browse files Browse the repository at this point in the history
  • Loading branch information
Jorropo committed Sep 1, 2022
1 parent dbe72d0 commit 62bb938
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pinning/remote/client/openapi/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ func parameterToString(obj interface{}, collectionFormat string) string {
if reflect.TypeOf(obj).Kind() == reflect.Slice {
return strings.Trim(strings.Replace(fmt.Sprint(obj), " ", delimiter, -1), "[]")
} else if t, ok := obj.(time.Time); ok {
return t.Format(time.RFC3339)
return t.Format(time.RFC3339Nano)
}

return fmt.Sprintf("%v", obj)
Expand Down

0 comments on commit 62bb938

Please sign in to comment.