wrong value time difference
<p>I want to get the value of the difference in time from a different time.
this is my code</p>

<pre><code>&lt;?php
function timeDiff($firstTime,$lastTime)
{
$firstTime=strtotime($firstTime);
$lastTime=strtotime($lastTime);
$diff=abs($lastTime-$firstTime);
$h = floor($diff / (60*60));
$m = floor(($diff - $h*60*60)/ 60);
$m = str_pad($m, 2, "0", STR_PAD_LEFT);
$timeDiff = $h.":".$m;
return $timeDiff;
}

echo timeDiff("19:07","06:53");

?&gt;
</code></pre>

<p>but why the results do not fit? the correct time is 11:46 but the results of my code is 12:14</p>
