1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-13 01:54:00 +02:00

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