I have weird bug working with Gson.
I have created it like this
mGson = new GsonBuilder().registerTypeAdapter(beelineItemType, new ItemsDeserializer()).setDateFormat("yyyy-MM-dd'T'HH:mm:ss").create();
and my json object is like this:
"EpgStartDate" : "2018-08-16T18:00:00"
but when I try to deserialize it I got this error:
ccom.google.gson.JsonSyntaxException: 2018-08-16T06:00:00
caused by: java.text.ParseException: Failed to parse date ["2018-08-16T06:00:00']: No time zone indicator (at offset 0)
Caused by: java.lang.IllegalArgumentException: No time zone indicator
I dont understand where to put time zone and how. I am in Serbia so where and how and what time zone to put. If someone can help that would be awesome :D