1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-16 03:24:01 +02:00

Set MySQL time zone by PHP setting only in Editor

This commit is contained in:
Jakub Vrana
2011-03-23 13:35:35 +01:00
parent d8cba0eb5d
commit e89f42d466
3 changed files with 3 additions and 2 deletions

View File

@@ -251,7 +251,6 @@ if (!defined("DRIVER")) {
$credentials = $adminer->credentials();
if ($connection->connect($credentials[0], $credentials[1], $credentials[2])) {
$connection->query("SET sql_quote_show_create = 1");
$connection->query("SET time_zone = " . $connection->quote(substr_replace(@date("O"), ":", -2, 0))); // date("P") available since PHP 5.1.3, @ - requires date.timezone since PHP 5.3.0
return $connection;
}
return $connection->error;