How to set time_zone using PDO

0

I have a connection using PDO that arrow SET NAMES UTF8 :

$options = [ PDO::MYSQL_ATTR_INIT_COMMAND => "SET NAMES UTF8" ];

But I would like to add SET time_zone='America/Sao_Paulo' .But of all the ways I tried it I return an Exception!

    
asked by anonymous 24.02.2017 / 20:44

0 answers