From 433357f8247c1fa8ef6dcfbf0cd463d1bed88ee8 Mon Sep 17 00:00:00 2001 From: Jakub Vrana Date: Thu, 11 Apr 2013 10:12:53 -0700 Subject: [PATCH] Use numeric time zone in export (thanks to Martin Dzubak) --- adminer/dump.inc.php | 2 +- changes.txt | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/adminer/dump.inc.php b/adminer/dump.inc.php index 57fe60bc..ee3f3d0d 100644 --- a/adminer/dump.inc.php +++ b/adminer/dump.inc.php @@ -14,7 +14,7 @@ if ($_POST) { " . ($jush != "sql" ? "" : "SET NAMES utf8; " . ($_POST["data_style"] ? "SET foreign_key_checks = 0; -SET time_zone = " . q($connection->result("SELECT @@time_zone")) . "; +SET time_zone = " . q(substr(preg_replace('~^[^-]~', '+\0', $connection->result("SELECT TIMEDIFF(NOW(), UTC_TIMESTAMP)")), 0, 6)) . "; SET sql_mode = 'NO_AUTO_VALUE_ON_ZERO'; " : "") . " "); diff --git a/changes.txt b/changes.txt index 669437cc..ebac5673 100644 --- a/changes.txt +++ b/changes.txt @@ -11,6 +11,7 @@ Open database to a new window after selecting it with Ctrl Disable autocapitalize in identifiers on mobile browsers MySQL: Compatibility with MySQL 5.6 MySQL: Move ALTER export to plugin +MySQL: Use numeric time zone in export SQLite: Export indexes Adminer 3.6.3 (released 2013-01-23):