From ea9a8896aa9029294f2664aad2804112629d184b Mon Sep 17 00:00:00 2001 From: jakubvrana Date: Thu, 30 Jul 2009 13:27:21 +0000 Subject: [PATCH] Include time git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@948 7c3ca157-0c34-0410-bff1-cbf682f78f5c --- editor/include/adminer.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/editor/include/adminer.inc.php b/editor/include/adminer.inc.php index 0527549d..ab031c02 100644 --- a/editor/include/adminer.inc.php +++ b/editor/include/adminer.inc.php @@ -314,8 +314,8 @@ ORDER BY ORDINAL_POSITION"); //! requires MySQL 5 function processInput($field, $value, $function = "") { global $dbh; - $return = $dbh->quote(ereg('date|timestamp', $field["type"]) && preg_match('(^' . preg_replace('~(\\\\\\$([0-9]))~', '(?P[0-9]+)', preg_quote(lang('$1-$3-$5'))) . ')', $value, $match) - ? ($match["p1"] ? $match["p1"] : ($match["p2"] < 70 ? 20 : 19) . $match["p2"]) . "-$match[p3]$match[p4]-$match[p5]$match[p6]" + $return = $dbh->quote(ereg('date|timestamp', $field["type"]) && preg_match('(^' . preg_replace('~(\\\\\\$([0-9]))~', '(?P[0-9]+)', preg_quote(lang('$1-$3-$5'))) . '(.*))', $value, $match) + ? ($match["p1"] ? $match["p1"] : ($match["p2"] < 70 ? 20 : 19) . $match["p2"]) . "-$match[p3]$match[p4]-$match[p5]$match[p6]" . end($match) : $value ); if (!ereg('varchar|text', $field["type"]) && $field["full_type"] != "tinyint(1)" && !strlen($value)) {