mirror of
https://github.com/vrana/adminer.git
synced 2025-08-08 23:57:29 +02:00
MySQL: Respect daylight saving time in dump (bug #384)
This commit is contained in:
@@ -18,10 +18,13 @@ if ($_POST && !$error) {
|
||||
|
||||
" . ($jush != "sql" ? "" : "SET NAMES utf8;
|
||||
" . ($_POST["data_style"] ? "SET foreign_key_checks = 0;
|
||||
SET time_zone = " . q(substr(preg_replace('~^[^-]~', '+\0', $connection->result("SELECT TIMEDIFF(NOW(), UTC_TIMESTAMP)")), 0, 6)) . ";
|
||||
SET time_zone = '+00:00';
|
||||
SET sql_mode = 'NO_AUTO_VALUE_ON_ZERO';
|
||||
" : "") . "
|
||||
");
|
||||
if ($jush == "sql" && $_POST["data_style"]) {
|
||||
$connection->query("SET time_zone = '+00:00';");
|
||||
}
|
||||
}
|
||||
|
||||
$style = $_POST["db_style"];
|
||||
|
Reference in New Issue
Block a user