A java.time
solution:
public static void main(String[] args) {
String orgDate = "2016-05-19T06:10:00";
String dstDate = LocalDateTime.parse(orgDate, DateTimeFormatter.ISO_LOCAL_DATE_TIME)
.atZone(ZoneId.of("UTC"))
.withZoneSameInstant(ZoneId.of("CET"))
// CET is deprecated timezone, see list: https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
.format(DateTimeFormatter.ISO_LOCAL_DATE_TIME);
// or use a custom formatter
System.out.println(orgDate);
System.out.println(dstDate);
}
Result:
2016-05-19T06:10:00
2016-05-19T08:10