mirror of
https://github.com/dg/dibi.git
synced 2025-08-05 21:58:10 +02:00
DibiMySqlDriver & MySQLi: sets time_zone in connect()
This commit is contained in:
@@ -126,6 +126,8 @@ class DibiMySqlDriver extends DibiObject implements IDibiDriver
|
||||
$this->query("SET sql_mode='$config[sqlmode]'");
|
||||
}
|
||||
|
||||
$this->query("SET time_zone='" . date('P') . "'");
|
||||
|
||||
$this->buffered = empty($config['unbuffered']);
|
||||
}
|
||||
|
||||
|
@@ -114,6 +114,8 @@ class DibiMySqliDriver extends DibiObject implements IDibiDriver
|
||||
$this->query("SET sql_mode='$config[sqlmode]'");
|
||||
}
|
||||
|
||||
$this->query("SET time_zone='" . date('P') . "'");
|
||||
|
||||
$this->buffered = empty($config['unbuffered']);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user