Problem with date() and strtotime
<p>Here is what I have:</p>

<pre><code>$str = '12-25-2009';
echo date('Y-m-d', strtotime($str));
</code></pre>

<p>This produces 1969-12-31 instead of 2009-12-25. If I set the $str var to 01-01-2009, I will get 2009-01-01 which is correct. Why is this happening?</p>
