I have to input the date time in this format :
"2018-07-17T12:16:50.52Z"
Hence I am using :
private static final SimpleDateFormat LIVETRACK_DATE_TIME_FORMATTER =
new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss'Z'");
DATE_TIME_FORMATTER.parse(timeFrameFrom);
But I'm getting the below error when I run test case :
Tue Jul 17 1[2:20:50 CES]T 2018> but was:<Tue Jul 17 1[0:20:50 GM]T 2018>
Does that mean I should convert the date to GMT format? How do I convert it?