You must strip the last colon to align it with the java zone information format "-0600"
.
Try the following:
String str = "2013-01-17T00:00:00-06:00";
new SimpleDataFormat("yyyy-MM-dd'T'hh:mm:ssZ").parse(str.replaceAll(":(..)$", "$1"));
source
to share