title: Converting UTC timestamp to other timezone specific time
body: <p>I am working on requirement where I need to convert UTC time stamp to other zone specific timestamp.Below are the list of different timezones.</p>
  
  <pre><code>CET UTC+0100  
  CST UTC+0800  
  CST UTC-0600  
  EST UTC-0500  
  IST UTC+0530  
  MET-1METDST   
  SGT UTC+0800  
  SST-8
  
  
  public static String convertUTCTimeStampToOtherZoneTimestamp(Timestamp timestamp,String timeZone){
      String zoneSpecificTimeStamp="";
      try {
          DateFormat gmtFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
          TimeZone zoneTime = TimeZone.getTimeZone(timeZone);
          gmtFormat.setTimeZone(zoneTime);
          SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
          String inputDateString = sdf.format(timestamp);
          sdf.setTimeZone(TimeZone.getTimeZone("UTC"));
           zoneSpecificTimeStamp=gmtFormat.format(sdf.parse(inputDateString));
        } catch (ParseException e) {
          e.printStackTrace();
          return zoneSpecificTimeStamp;
  
        }
      return zoneSpecificTimeStamp;
  }
  </code></pre>
  
  <p>The above code is work fine for timezones like EST,PST,IST but for other timezones mentioned in the list the program is giving wrong results. Please update me with the correct solution for this</p>