title: php compiles timezone Europe/Berlin like UTC
body: <p>I've been struggling with a weird problem today. For some reason my server pretends that the timezone 'Europe/Berlin' is UTC (it should be UTC+1). If I set the timezone to 'Europe/Brussels' for example, it converts the time correctly.</p>
  
  <p>I've created some dummy code to test my server and on an online compiler. While the compiler works (I've used <a href="http://sandbox.onlinephpfunctions.com/" rel="nofollow noreferrer">http://sandbox.onlinephpfunctions.com/</a>), my server persists to have this issue.</p>
  
  <p>Here's the code:</p>
  
  <pre><code>&lt;?php
  $time = 'now';
  
  $timezone1 = 'Europe/London';
  $timezone2 = 'Europe/Berlin';
  $timezone3 = date_default_timezone_get();
  $timezone4 = 'Europe/Brussels';
  
  $dateTime1 = new \DateTime($time, new DateTimeZone($timezone1));
  $timeParsed1 = $dateTime1-&gt;format('Y-m-d H:i:sP');
  
  $dateTime2 = new \DateTime($time, new DateTimeZone($timezone2));
  $timeParsed2 = $dateTime2-&gt;format('Y-m-d H:i:sP');
  
  $dateTime3 = new \DateTime($time, new DateTimeZone($timezone3));
  $timeParsed3 = $dateTime3-&gt;format('Y-m-d H:i:sP');
  
  $dateTime4 = new \DateTime($time, new DateTimeZone($timezone4));
  $timeParsed4 = $dateTime4-&gt;format('Y-m-d H:i:sP');
  
  echo($timezone1 . ': ' . $timeParsed1 . '&lt;br&gt;' . $timezone2 . ': ' . $timeParsed2 . '&lt;br&gt;' . $timezone3 . ': ' . $timeParsed3 . '&lt;br&gt;' . $timezone4 . ': ' . $timeParsed4);
  ?&gt;
  </code></pre>
  
  <p>And here's the output that this genereates:</p>
  
  <pre><code>Europe/London: 2017-01-26 01:24:18+00:00
  Europe/Berlin: 2017-01-26 01:24:18+00:00
  UTC: 2017-01-26 01:24:18+00:00
  Europe/Brussels: 2017-01-26 02:24:18+01:00
  </code></pre>
  
  <p>I've been trying to find the cause for this and searched here on Stackoverflow, but I couldn't find the reason. Here's a link to my phpinfo(): <a href="http://arma.jianji.de/phpinfo.php" rel="nofollow noreferrer">http://arma.jianji.de/phpinfo.php</a></p>
  
  <p>And this is the dummy code on my server in action: <a href="http://arma.jianji.de/phptest.php" rel="nofollow noreferrer">http://arma.jianji.de/phptest.php</a></p>
  
  <p>The server has been recently set up by me using Ubtuntu 16 LTS and Plesk Onyx. The server default timezone is set to London.</p>
  
  <p>Unfortunately, I've been unable to find the reason for this. Do you have an idea?</p>
  
  <p>Thank you in advance for your help!</p>
  
  <p><strong>Update</strong></p>
  
  <p>Because this has been brought up quite a lot, I've created a test where I set a default timezone by using:</p>
  
  <pre><code>date_default_timezone_set('Europe/Brussels');
  </code></pre>
  
  <p>Additionally, I've added "Europe/London" as default timezone in my php.ini.</p>
  
  <p>The issue still persists: <a href="http://arma.jianji.de/phptest_default.php" rel="nofollow noreferrer">http://arma.jianji.de/phptest_default.php</a></p>