Removed obsolete code
This commit is contained in:
@@ -10,6 +10,8 @@ $Source$
|
|||||||
are now put inside a <code> HTML-container, not <pre>. This allows
|
are now put inside a <code> HTML-container, not <pre>. This allows
|
||||||
wordwrapping to hide vertical scrollbars. Linebreak/Whitespace
|
wordwrapping to hide vertical scrollbars. Linebreak/Whitespace
|
||||||
formatting has been altered to preserve those.
|
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>
|
2003-11-04 Marc Delisle <lem9@users.sourceforge.net>
|
||||||
* Documentation.html: bug 833900, added known limitation in FAQ 3.10
|
* Documentation.html: bug 833900, added known limitation in FAQ 3.10
|
||||||
|
@@ -60,13 +60,8 @@ if (!defined('PMA_TRANSFORMATION_TEXT_PLAIN__DATEFORMAT')){
|
|||||||
$timestamp = $buffer;
|
$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
|
// Reformat a valid timestamp
|
||||||
if ($timestamp != -1) {
|
if ($timestamp >= 0) {
|
||||||
$timestamp -= $options[0] * 60 * 60;
|
$timestamp -= $options[0] * 60 * 60;
|
||||||
$buffer = PMA_localisedDate($timestamp, $options[1]);
|
$buffer = PMA_localisedDate($timestamp, $options[1]);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user