title: Conversion of UTC to IST time in java is working in LOCAL but not in CLOUD SERVER
body: <p>I am working in date conversion in java in that i am using following code snippet to convert the UTC time to IST format.It is working properly in the local when i run it but when i deploy it in server its not converting , its displaying only the utc time itself.Is there any configuaration is needed in server side.Please help me out.</p>
  
  <p><strong>CODE SNIPPET:</strong></p>
  
  <pre><code>   DateFormat sdf = new SimpleDateFormat("dd-MM-yyyy HH:mm:ss");
      sdf.setTimeZone(TimeZone.getTimeZone("UTC"));
      String pattern = "dd-MM-yyyy HH:mm:ss";
      SimpleDateFormat formatter;
      formatter = new SimpleDateFormat(pattern);
  
      try {
          String formattedDate = formatter.format(utcDate);
          Date ISTDate = sdf.parse(formattedDate);
  String ISTDateString = formatter.format(ISTDate);
              return ISTDateString;
  }
  </code></pre>