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

No warning with setting time zone

This commit is contained in:
Jakub Vrana
2011-03-11 22:15:27 +01:00
parent a8df780fe0
commit e52ac37c3e

View File

@@ -251,7 +251,7 @@ 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
$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;