Use numeric time zone in export (thanks to Martin Dzubak)

This commit is contained in:
Jakub Vrana 2013-04-11 10:12:53 -07:00
parent d97300dd5a
commit 433357f824
2 changed files with 2 additions and 1 deletions

View file

@ -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';
" : "") . "
");

View file

@ -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):