Time left calculation not working PHP
<p>I am doing a website where I needed to calculate the time left somewhere.both time(), and $endTime work properly individually but this calculation doesn't seem to work
(it always shows 02:00:00):</p>

<pre><code>$timeLeft = date('H:i:s',max(($endTime - time()) , 0));
</code></pre>

<p>Where is the problem?</p>

<p>edit:
$endTime = 1296727200</p>
