title: PHP: Timestamp difference incorrect
body: <p><strong>The situation</strong></p>
  
  <p>I've got two timestamps. <br /><br />
  One with the start time and one with the end time.</p>
  
  <p>The start time is: 04:43:37<br />
  The end time is: 11:59:59</p>
  
  <p>Now I am trying to get the difference between the dates like this:</p>
  
  <pre><code>//define timestamps
  $start_time     = 1297698217;
  $end_time      = 1297724399;
  $time_diff    = $end_time - $start_time;
  
  //display times and difference
  echo 
      '&lt;b&gt;Start time:&lt;/b&gt; ' . date('d-m-Y h:i:s', $start_time) . '&lt;br /&gt;' .
      '&lt;b&gt;End time:&lt;/b&gt; ' . date('d-m-Y h:i:s', $end_time) . '&lt;br /&gt;' .
      '&lt;b&gt;Time difference::&lt;/b&gt; ' . date('h:i:s', $time_diff);</code></pre>
  
  <p><br />
  <strong>The result</strong></p>
  
  <p><pre><code>Start time: 14-02-2011 04:43:37
  End time: 14-02-2011 11:59:59
  Time difference: 08:16:22</pre></code></p>
  
  <p><br />
  <strong>The problem</strong></p>
  
  <p>Now the problem is that the result should be 07:16:22. I've tried this with different times, but every time I'm getting the same result. One hour too much difference.</p>
  
  <p>Is there an expert willing to help?</p>