From c832144db30b254ec6701cc4f2c807144718ff31 Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Mon, 19 Jul 2021 11:56:55 +0200 Subject: [PATCH] Mysql: Transmit timezone value not as prepared value fixes #36 --- src/Adapter/Mysql.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Adapter/Mysql.php b/src/Adapter/Mysql.php index 5d464fb..891f43a 100644 --- a/src/Adapter/Mysql.php +++ b/src/Adapter/Mysql.php @@ -14,7 +14,7 @@ class Mysql extends BaseAdapter public function setClientTimezone(Connection $db) { - $db->prepexec('SET time_zone = ?', [$this->getTimezoneOffset()]); + $db->exec('SET time_zone = ' . $db->quote($this->getTimezoneOffset())); return $this; }