title: Date gives one day less than actual date while converting from date to calendar
body: <p>I am passing date from front end which is IST(date of indian timezone). And in java code i am converting date to calendar using the following code(This is happening in the server which is there in US PST timezone).</p>
  
  <pre><code>Calendar cal = Calendar.getInstance();
  int offset = date.getTimezoneOffset();
  logger.info("Calendar Instance - " + cal);
  cal.setTime(date);
  logger.info("Calendar Instance after setting date - " + cal);
  cal.set(Calendar.HOUR_OF_DAY, 0);
  cal.set(Calendar.MINUTE, 0);
  cal.set(Calendar.SECOND, 0);
  cal.set(Calendar.MILLISECOND, 0);
  logger.info("Calendar Instance after setting zeros - " + cal);
  return cal;
  </code></pre>
  
  <p>so when i see the last log the day of the month will be one day less than what i passed.eg. if i pass 22/06/2015 IST it shifts to 21/06/2015. so after processing finally it displays 21/06/2015 in the list of data which is in another UI page.</p>