title: php datetime and zone
body: <p>I'm trying to convert a string of time to datetime with meridian but I got wrong datetime.<br>
  Here is my code:</p>
  
  <pre><code>$timeZone = 'Europe/Warsaw';
  date_default_timezone_set($timeZone);
  $millis  = 1540399680000;
  $seconds = $millis / 1000;
  $date    = date("d/m/Y H:i:s a", $seconds);
  debug($date);
  $timeZone = new DateTimeZone('Europe/Warsaw');
  $formato  = "d/m/Y H:i:s a";
  $fecha    = DateTime::createFromFormat($formato, $date, $timeZone);
  debug($fecha);
  debug($fecha-&gt;format('Y'));
  debug($fecha-&gt;format('a'));
  </code></pre>
  
  <p>result for debug($date)</p>
  
  <pre><code>24/10/2018 18:48:00 pm
  </code></pre>
  
  <p>result for debug($fecha)</p>
  
  <pre><code>object(DateTime) {
      date =&gt; '2018-10-25 06:48:00.000000'
      timezone_type =&gt; (int) 3
      timezone =&gt; 'Europe/Warsaw'
  }
  </code></pre>
  
  <p>what i am expecting is at debug($fecha);
      <code>date =&gt; '2018-10-24 06:48:00.000000'</code></p>