diff --git a/adminer/static/default.css b/adminer/static/default.css index 8e84697c..9dd813e2 100644 --- a/adminer/static/default.css +++ b/adminer/static/default.css @@ -31,6 +31,7 @@ tr:hover td, tr:hover th { background: #ddf; } .time { color: silver; font-size: 70%; float: right; margin-top: -3em; } .function { text-align: right; } .number { text-align: right; } +.datetime { text-align: right; } .type { width: 15ex; width: auto\9; } #menu { position: absolute; margin: 10px 0 0; padding: 0 0 30px 0; top: 2em; left: 0; width: 19em; overflow: auto; overflow-y: hidden; white-space: nowrap; } #menu p { padding: .8em 1em; margin: 0; border-bottom: 1px solid #ccc; } diff --git a/editor/include/adminer.inc.php b/editor/include/adminer.inc.php index 1d311772..cfb2d167 100644 --- a/editor/include/adminer.inc.php +++ b/editor/include/adminer.inc.php @@ -159,6 +159,8 @@ ORDER BY ORDINAL_POSITION"); } if (!$link && $field["full_type"] != "tinyint(1)" && ereg('int|float|double|decimal', $field["type"])) { $return = "
$return
"; // Firefox doesn't support + } elseif (ereg('date', $field["type"])) { + $return = "
$return
"; } return $return; }