Skip to content
This repository was archived by the owner on Jul 21, 2020. It is now read-only.

Commit 52892b9

Browse files
committed
Fixed use of different ISO 8601 format in users endpoint
1 parent 6529529 commit 52892b9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/main/java/com/mixer/api/http/MixerHttpClient.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,9 @@ public <T> T handleResponse(HttpResponse partialResponse, Class<T> type) throws
236236
// Allow a null response to be given back, such that we return a ListenableFuture
237237
// with null.
238238
if (type != null && completeResponse.body != null) {
239-
return this.mixer.gson.fromJson(completeResponse.body(), type);
239+
String result = completeResponse.body;
240+
result = result.replaceAll("[+|-][0-1][0-9]:[0-5][0-9]", ".000Z");
241+
return this.mixer.gson.fromJson(result, type);
240242
} else {
241243
return null;
242244
}

0 commit comments

Comments
 (0)