title: SimpleDateFormat behaves differently in different timezones JVM
body: <p>I am following the below code to create a Date object on specified dateTime with a specified Timezone.<BR>
  Note: I haven't set any timezone for jvm; But testing this code with different linux server timezones. </p>
  
  <pre><code>    String date = "20121225 10:00:00";
      String timeZoneId = "Asia/Calcutta";
      TimeZone timeZone = TimeZone.getTimeZone(timeZoneId);
  
      DateFormat dateFormatLocal = new SimpleDateFormat("yyyyMMdd HH:mm:ss z");
                  //This date object is given time and given timezone
      java.util.Date parsedDate = dateFormatLocal.parse(date + " "  
                       + timeZone.getDisplayName(false, TimeZone.SHORT));
  
      if (timeZone.inDaylightTime(parsedDate)) {
          // We need to re-parse because we don't know if the date
          // is DST until it is parsed...
          parsedDate = dateFormatLocal.parse(date + " "
                  + timeZone.getDisplayName(true, TimeZone.SHORT));
      }
  </code></pre>
  
  <p><BR>
  Now parsedDate object behaves differently <BR>
  <B>When my jvm Server is running in IST </B><BR>
  parsedDate.getTime()  -- 1356409800000 <BR>
  parsedDate.toString() -- Tue Dec 25 10:00:00 IST 2012<BR>
  in GMT  --- 12/25/2012 04:30:00 GMT<BR>
  <B>When my jvm Server is running in EST </B><BR>
  parsedDate.getTime()  -- 1356422400000  <BR>
  parsedDate.toString() -- Tue Dec 25 03:00:00 EST 2012<BR>
  in GMT  --- 12/25/2012 08:00:00 GMT<BR></p>
  
  <p>My both system times are in sync <BR>
  Mon Dec 24 10:30:04 EST 2012 <BR>
  Mon Dec 24 21:00:48 IST 2012 <BR>
  I am expecting in both machine i should get the same GMT time.<BR>
  What was wrong here?</p>