summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@sullrich-MacBookPro.local>2009-03-18 20:34:33 -0400
committerScott Ullrich <sullrich@sullrich-MacBookPro.local>2009-03-18 20:34:33 -0400
commit69de22908454caf3315d763b709e662689b79f4a (patch)
tree366f4a3dbaea3000e5fbbf4e6a15cb4b5433bc2f /usr
parent0ecc77294dcf3db6c20f93db3fbd6b53479939d9 (diff)
downloadpfsense-69de22908454caf3315d763b709e662689b79f4a.zip
pfsense-69de22908454caf3315d763b709e662689b79f4a.tar.gz
Convert epoch time to human readable
Diffstat (limited to 'usr')
-rwxr-xr-xusr/local/www/guiconfig.inc3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr/local/www/guiconfig.inc b/usr/local/www/guiconfig.inc
index 1d96388..53ff392 100755
--- a/usr/local/www/guiconfig.inc
+++ b/usr/local/www/guiconfig.inc
@@ -764,9 +764,10 @@ function dump_clog($logfile, $tail, $withorig = true, $grepfor = "", $grepinvert
$logent = preg_split("/\s+/", $logent, 6);
echo "<tr valign=\"top\">\n";
if ($withorig) {
+ $logent[1] = date("Y-m-d H:i:s","" . $logent[1] . "");
$entry_date_time = htmlspecialchars(join(" ", array_slice($logent, 0, 3)));
echo "<td class=\"listlr\" nowrap>" . $entry_date_time . "</td>\n";
- echo "<td class=\"listr\">" . htmlspecialchars($logent[4] . " " . $logent[5]) . "</td>\n";
+ echo "<td class=\"listr\">" . htmlspecialchars($logent[5]) . "</td>\n";
} else {
echo "<td class=\"listlr\" colspan=\"2\">" . htmlspecialchars($logent[5]) . "</td>\n";
}
OpenPOWER on IntegriCloud