I have a string with timezone included like 2020-11-12T12:00:00-0800. When I converting into to date in the JAVA time zone automatically changing to IST, can someone help with this? thanks in advance.
String s = '2020-11-12T12:00:00-0800'
DateFormat format = new SimpleDateFormat("yyyy-MM-dd'T'hh:mm:ssZ");
date = format.parse(s);