PHP strtotime bug?
<p>Take a look at this code and please tell me how is it possible that this works flawlessly for Wednesday, but not for Tuesday:</p>

<pre><code> &lt;?php
$current_time = strtotime('now');
if ($current_time &gt; strtotime('tuesday this week 8:45pm') &amp;&amp; $current_time &lt; strtotime('tuesday this week 11:45pm')) {
 $background = 1;
}
if ($current_time &gt; strtotime('wednesday this week 8:45pm') &amp;&amp; $current_time &lt; strtotime('wednesday this week 11:45pm')) {
 $background = 1;
}
else{
$background = 0;
}

?&gt;

   &lt;script&gt;
   var backday = &lt;?php echo json_encode($background); ?&gt;;
   &lt;/script&gt;
</code></pre>

<p>For Tuesday, it returns 0, but for Wednesday it returns 1, as it should. WHY? </p>
