MySQL: Respect daylight saving time in dump (bug #384)

This commit is contained in:
Jakub Vrana 2014-02-21 09:09:09 -08:00
parent ef81b5c1b2
commit d53ffc2158
2 changed files with 5 additions and 1 deletions

View file

@ -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"];

View file

@ -1,4 +1,5 @@
Adminer 4.0.4-dev:
MySQL: Respect daylight saving time in dump, bug since Adminer 3.6.4
SQLite: Display auto-created unique indexes, bug since Adminer 3.5.0
Editor: Fix login() method, bug since Adminer 4.0.0