" . ($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"];
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