mktime VS time PHP4 VS PHP5
<p>I download event calender from <a href="http://www.phpcodeworks.com/pec/installation" rel="nofollow">http://www.phpcodeworks.com/pec/installation</a>. I am using PHP 5.3.X therefore browser said <strong>F:\xampp\htdocs\msj\functions.php</strong> so I replace :</p>

<pre><code>$days = date("t", mktime(0,0,0,$month,1,$year));
</code></pre>

<p>with:</p>

<pre><code>$days = date("t",` time(0,0,0,$month,1,$year)); 
</code></pre>

<p>but doing so each date goes 24 hours back as follows.</p>

<p>Image when using <code>$days = date("t", mktime(0,0,0,$month,1,$year));</code>:</p>

<p><img src="http://i.stack.imgur.com/lm7nH.gif" alt="enter image description here"></p>

<p>Image when using <code>$days = date("t", time(0,0,0,$month,1,$year));</code>:</p>

<p><img src="http://i.stack.imgur.com/0VeQ5.gif" alt="enter image description here"></p>
