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:
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user