title: simpledateformat changing timezone
body: <p>I  have strange problem with time format conversion.</p>
  
  <p>I have string , time = "11:00"</p>
  
  <p>I have to convert above string to date and I am doing the following:</p>
  
  <pre><code>Calendar cal= Calendar.getInstance();
  cal.setTime(Convert.fromShortTime(timeIn)); // this method is below
  
  public static SimpleDateFormat SHORT_TIME = new SimpleDateFormat("HH:mm");
  
  public static Date fromShortTime(String shortTime)
  {
      try {
          return shortTime == null ? null : SHORT_TIME.parse(shortTime);
      } catch (ParseException e) {
          return null;
      }
  }
  </code></pre>
  
  <p>so cal.setTime(Convert.fromShortTime(timeIn)); changes the value to:
  Thu Jan 01 10:00:00 PST 1970  which is 1 hour less the string.</p>
  
  <p>My laptop time is Mountain time and device time is pacific time.
  If I change the laptop time to pacific then its working fine.</p>
  
  <p>I'm wondering why the Android Studio's laptop time effects the SimpledateFormat?</p>