I have the below code:
DateFormat df = new SimpleDateFormat("M/d/yy h:mm a z");
df.setLenient(false);
System.out.println(df.parse("6/29/2012 5:15 PM IST"));
Assuming I now set my PC's timezone to Pacific Time (UTC-7 for PDT), this prints
Fri Jun 29 08:15:00 PDT 2012
Isn't PDT 12.5 hours behind IST (Indian Standard Time)? This problem does not occur for any other timezone - I tried UTC, PKT, MMT etc instead of IST in the date string. Are there two ISTs in Java by any chance?
P.S: The date string in the actual code comes from an external source, so I cannot use GMT offset or any other timezone format.