title: PHP, use strtotime to subtract minutes from a date-time variable?
body: <p>I need to subtract 45 minutes from the date-time variable in PHP.</p>
  
  <p>The code:</p>
  
  <pre><code>$thestime = '2012-07-27 20:40';
  $datetime_from = date("Y-m-d h:i",strtotime("-45 minutes",strtotime($thestime)));
  echo $datetime_from;
  </code></pre>
  
  <p>returns the result <code>2012-07-27 07:55</code>.  </p>
  
  <p>It should be <code>2012-07-27 19:55</code>, though. How do I fix this?</p>