Skip to content

Commit 1a64df3

Browse files
committed
Fix mysql TZ.
1 parent 798bce7 commit 1a64df3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Drivers/PdbMysql.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ protected static function afterConnect(PDO $pdo, PdbConfig $config, array $optio
7979
$tz = Time::getTimezoneOffset($tz);
8080
}
8181

82-
$tz = $pdo->quote($config->timezone, PDO::PARAM_STR);
82+
$tz = $pdo->quote($tz, PDO::PARAM_STR);
8383
$pdo->query("SET SESSION time_zone = {$tz}");
8484
}
8585

0 commit comments

Comments
 (0)