title: Timestamp wrong time
body: <p>This is my problem</p>
  
  <p>My default timezone is <code>date_default_timezone_set('Europe/Madrid')</code></p>
  
  <pre><code>actual time 2012-12-06 17:00:38
  start time 2012-12-10 16:30:00
  
  unix timestamp actual time 1354809638
  unix timestamp start time 1350052200
  </code></pre>
  
  <p>Start time is greater then actual time. But "unix timestamp actual time" is greater then "unix timestamp start time".</p>
  
  <p>I wonder why? </p>
  
  <p>RELEVANT CODE:</p>
  
  <pre><code>$to_unix_startTime = new DateTime($postField['startTime']);
  $UnixStartTime = $to_unix_startTime-&gt;format('U');
  </code></pre>
  
  <p>$date = new DateTime(); 
  $actualTime = $date->getTimestamp(); </p>
  
  <pre><code>$start = new DateTime($postFields['startAuct']);
          $start-&gt;format('Y-m-d H:i:s').PHP_EOL;
          $start_tmstmp = date_timestamp_get($start);
          $date = new DateTime(); 
          $timestamp = $date-&gt;getTimestamp();
          if ($timestamp &gt; $start_tmstmp) {
              echo $auctStatus = 1;
          } elseif ($timestamp &lt; $start) {
              echo $auctStatus = 4;
          }
  </code></pre>