Skip to content
This repository was archived by the owner on Jul 21, 2020. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/main/java/com/mixer/api/util/gson/DateAdapter.java
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,10 @@ public DateAdapter(List<DateFormat> formats, DateFormat defaultFormat) {
public static DateAdapter v1() {
DateFormat defaultFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
DateFormat newFormat = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSSZ");
DateFormat ISOFormat = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ssX");

return new DateAdapter(
ImmutableList.of(defaultFormat, newFormat),
ImmutableList.of(defaultFormat, newFormat, ISOFormat),
defaultFormat
);
}
Expand Down