title: PHP date("w", $timein) returns wrong value with a valid date
body: <p>I have this function that runs on the server and I want a different output based on the day of the week, Saturday and Sunday should give weekend message and different for the weekdays.</p>
  
  <pre><code>$timein = date("Y-m-d h:i:s");
  $dw = date("D", $timein);
  $tm = date("e", $timein);
  echo "Current Date: ".$timein."&lt;br&gt;";
  echo "Day of the week: ".$dw."&lt;br&gt;";
  echo "Timezone: ".$tm."&lt;br&gt;";
  </code></pre>
  
  <p>and this is the output:</p>
  
  <blockquote>
    <p>Current Date: 2015-05-15 06:07:12<br> Day of the week: Wed<br>
    Timezone: America/Denver</p>
  </blockquote>
  
  <p>We are Friday and I was expecting <code>Fri</code>, I was using <code>w</code> instead of <code>D</code> but I always was getting 3 in the results.</p>