title: Changing time zone after connecting to database using "set time_zone = ..."
body: <p>I'm trying to change the time zone to "Europe/London" right after connecting to my database. This was my original code:</p>
  
  <pre><code>$pdo = new PDO('mysql:host=localhost;dbname=exampletable', 'exampleuser', 'examplepassw', array(\PDO::MYSQL_ATTR_INIT_COMMAND =&gt;  'SET NAMES utf8');
  </code></pre>
  
  <p>And I changed it into the following code but apparently that's not the right way to change the time zone cause I get an error.</p>
  
  <pre><code>$pdo = new PDO('mysql:host=localhost;dbname=exampletable', 'exampleuser', 'examplepassw', array(\PDO::MYSQL_ATTR_INIT_COMMAND =&gt;  'SET NAMES utf8', 'SET time_zone = 'Europe/London''));
  </code></pre>
  
  <p>How can I change the time zone starting from PDO?</p>