title: Converting date to milliseconds to date
body: <p>I ran into a strange issue. I am sending a date that I converted to milliseconds using Javascript to my controller. There, I convert the milliseconds to a time stamp in PHP. It seems to get the date part of it right, but the time is totally off. Can anyone please tell me what am I missing? The code is below.</p>
  
  <p><strong>javascript</strong></p>
  
  <pre><code>var d = new Date("13 October 2014 11:13:00");    
  document.write(d.getTime() + " milliseconds since 1970/01/01");
  </code></pre>
  
  <p>result</p>
  
  <pre><code>1413191580000
  </code></pre>
  
  <p><strong>php</strong></p>
  
  <pre><code>echo date("Y-m-d H:i:s", 1413191580000/1000);
  </code></pre>
  
  <p>result</p>
  
  <pre><code>2014-10-13 02:13:00
  </code></pre>