Skip to content

Commit

Permalink
Fixing timezone changing in Mysql driver
Browse files Browse the repository at this point in the history
  • Loading branch information
lorenzo committed Apr 1, 2013
1 parent 316b874 commit a567c78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Cake/Model/Datasource/Database/Driver/Mysql.php
Expand Up @@ -57,7 +57,7 @@ public function connect(array $config) {
$config['timezone'] = '+0:00';
}

$config['init'][] = "SET time_zone = '+0:00'";
$config['init'][] = sprintf("SET time_zone = '%s'", $config['timezone']);
$config['flags'] += [
PDO::ATTR_PERSISTENT => $config['persistent'],
PDO::MYSQL_ATTR_USE_BUFFERED_QUERY => true,
Expand Down

0 comments on commit a567c78

Please sign in to comment.