title: java remove timezone offset from timestamp
body: <p>I have XMLGregorianCalendar date like this '2016-09-27T10:49:27.640+03:00'
  needed get timestams without timezone offset 
  I do this:</p>
  
  <pre><code>XMLGregorianCalendar gcWorkDate = request.getWorkDate();
  //gcWorkDate = (com.sun.org.apache.xerces.internal.jaxp.datatype.XMLGregorianCalendarImpl) 2016-09-27T10:49:27.640+03:00
  gcWorkDate.setTimezone(0);
  //gcWorkDate = (com.sun.org.apache.xerces.internal.jaxp.datatype.XMLGregorianCalendarImpl) 2016-09-27T10:49:27.640Z
  Timestamp tsWorkDate = new Timestamp(gcWorkDate.toGregorianCalendar().getTimeInMillis());
  //tsWorkDate = (java.sql.Timestamp) 2016-09-27 13:49:27.64
  </code></pre>
  
  <p>I want to receive tsWorkDate = 2016-09-27 10:49:27.64
  What I doing wrong?</p>