1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-14 02:23:59 +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

@@ -50,6 +50,8 @@ document.getElementById('username').focus();
}
function login($login, $password) {
global $connection;
$connection->query("SET time_zone = " . q(substr_replace(@date("O"), ":", -2, 0))); // date("P") available since PHP 5.1.3, @ - requires date.timezone since PHP 5.3.0
return true;
}