diff --git a/ChangeLog b/ChangeLog index e531794c7..4caa23446 100755 --- a/ChangeLog +++ b/ChangeLog @@ -10,6 +10,8 @@ $Source$ are now put inside a HTML-container, not
. This allows
       wordwrapping to hide vertical scrollbars. Linebreak/Whitespace
       formatting has been altered to preserve those.
+    * libraries/transformations/text_plain__dateformat.inc.php3:
+      Remove obsolete code, thanks to Thiemo Maettig!
 
 2003-11-04 Marc Delisle  
     * Documentation.html: bug 833900, added known limitation in FAQ 3.10
diff --git a/libraries/transformations/text_plain__dateformat.inc.php3 b/libraries/transformations/text_plain__dateformat.inc.php3
index 41eaaddc0..2e9755b30 100644
--- a/libraries/transformations/text_plain__dateformat.inc.php3
+++ b/libraries/transformations/text_plain__dateformat.inc.php3
@@ -60,13 +60,8 @@ if (!defined('PMA_TRANSFORMATION_TEXT_PLAIN__DATEFORMAT')){
             $timestamp = $buffer;
         }
 
-        // If there are still errors or the timestamp is invalid, mark timestamp invalid
-        if ($timestamp < 0 || !preg_match('/^[1-9]\d{1,9}$/', $timestamp)) {
-            $timestamp = -1;
-        }
-
         // Reformat a valid timestamp
-        if ($timestamp != -1) {
+        if ($timestamp >= 0) {
             $timestamp -= $options[0] * 60 * 60;
             $buffer = PMA_localisedDate($timestamp, $options[1]);
         }