Removed obsolete code

This commit is contained in:
Garvin Hicking
2003-11-05 11:15:00 +00:00
parent e733e4a924
commit 560681923c
2 changed files with 3 additions and 6 deletions

View File

@@ -10,6 +10,8 @@ $Source$
are now put inside a <code> HTML-container, not <pre>. 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 <lem9@users.sourceforge.net>
* Documentation.html: bug 833900, added known limitation in FAQ 3.10

View File

@@ -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]);
}