From 62bb9386990edcb7dbbdeb2ac54e4aae50e9cfe8 Mon Sep 17 00:00:00 2001 From: Jorropo Date: Thu, 18 Aug 2022 15:25:55 +0200 Subject: [PATCH] fix: send up to nanosecond precision This commit was moved from ipfs/go-pinning-service-http-client@05198b4897e722900553b3242a94a28d512769b4 --- pinning/remote/client/openapi/client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pinning/remote/client/openapi/client.go b/pinning/remote/client/openapi/client.go index a0fc90e6f..b3cea998b 100644 --- a/pinning/remote/client/openapi/client.go +++ b/pinning/remote/client/openapi/client.go @@ -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)