title: php: convert milliseconds to date
body: <p>I Have a string that is equal to a date, represented as the number of milliseconds since the Unix epoch.</p>
  
  <p>I am trying to output it into d-m-Y.</p>
  
  <p>The string I was given was "1227643821310", and I am told that the result should be equal to <em>2-12-2008</em>, but I keep getting a result of <em>25-11-2008</em></p>
  
  <p>My code is as follows:</p>
  
  <pre><code>$mil = 1227643821310;
  $seconds = $mil / 1000;
  echo date("d-m-Y", $seconds);
  </code></pre>
  
  <p>Any ideas as to why this might be?</p>