title: Converting java.util.Date to java.sql.Timestamp results into wrong value
body: <p>Server side code (server timezone is UTC):-</p>
  
  <pre><code>Date aDate = new Date();
  java.sql.Timestamp aTimestamp = new java.sql.Timestamp(aDate.getTime());
  </code></pre>
  
  <p>Client side (Mobile app, timezone GMT +5:30):-</p>
  
  <pre><code>Hitting a service request which runs above code on server side
  </code></pre>
  
  <p>The issue is when i debugged on server, found following values :-</p>
  
  <pre><code>aDate.getTime() prints to -&gt; 1470472883877 milliseconds i.e., Sat Aug 06 2016 14:11:23 GMT+0530
  </code></pre>
  
  <p>but</p>
  
  <pre><code>aTimestamp prints to -&gt;  (java.sql.Timestamp) 2016-08-06 08:41:44.109
  </code></pre>
  
  <p>It's kinda weird, i've no idea what's going on in conversion !! please help</p>