]> git.joonet.de Git - adminer.git/commitdiff
Display date in SQL history (thanks to trestna smradlavice)
authorJakub Vrana <jakub@vrana.cz>
Sat, 1 Dec 2012 18:01:09 +0000 (10:01 -0800)
committerJakub Vrana <jakub@vrana.cz>
Sat, 1 Dec 2012 18:01:09 +0000 (10:01 -0800)
adminer/sql.inc.php

index 43e5f8bb2c408607dd888e01a8ecf416bf637a6b..1768ded1d729d66da15373734192dd0f06da69a2 100644 (file)
@@ -205,7 +205,7 @@ if ($history) {
        print_fieldset("history", lang('History'), $_GET["history"] != "");
        foreach ($history as $key => $val) {
                list($q, $time) = $val;
-               echo '<a href="' . h(ME . "sql=&history=$key") . '">' . lang('Edit') . "</a> <span class='time'>" . @date("H:i:s", $time) . "</span> <code class='jush-$jush'>" . shorten_utf8(ltrim(str_replace("\n", " ", str_replace("\r", "", preg_replace('~^(#|-- ).*~m', '', $q)))), 80, "</code>") . "<br>\n"; // @ - time zone may be not set
+               echo '<a href="' . h(ME . "sql=&history=$key") . '">' . lang('Edit') . "</a> <span class='time' title='" . @date('Y-m-d', $time) . "'>" . @date("H:i:s", $time) . "</span> <code class='jush-$jush'>" . shorten_utf8(ltrim(str_replace("\n", " ", str_replace("\r", "", preg_replace('~^(#|-- ).*~m', '', $q)))), 80, "</code>") . "<br>\n"; // @ - time zone may be not set
        }
        echo "<input type='submit' name='clear' value='" . lang('Clear') . "'>\n";
        echo "<a href='" . h(ME . "sql=&history=all") . "'>" . lang('Edit all') . "</a>\n";