title: convert timestamp to date time in php
body: <p>1517317337107</p>
  
  <p>it should be: Wed Jan 31 00:02:17 GMT+11:00 2018</p>
  
  <p>I verify this on <a href="https://www.epochconverter.com/" rel="nofollow noreferrer">https://www.epochconverter.com/</a></p>
  
  <p>the result is:
  Assuming that this timestamp is in milliseconds:
  GMT: Tuesday, January 30, 2018 1:02:17.107 PM
  Your time zone: Wednesday, January 31, 2018 12:02:17.107 AM GMT+11:00 DST</p>
  
  <p>My code in php is:</p>
  
  <pre><code>$timestamp = 1517317337107;
  echo date('Y-m-d H:i:s', $timestamp);
  </code></pre>
  
  <p>the output is "2038-01-19 04:14:07"</p>
  
  <p>what should I do?</p>