We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit fb65fba3 authored by fauno's avatar fauno

added human timestamp support

parent 923cc326
<?php
header('Content-type: text/html; charset=utf-8');
require_once('database.php');
require_once('utils/human-time.php');
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
......@@ -81,7 +82,7 @@ if ($req_user) {
echo ($i % 2 == 0) ? "<tr class=\"even\">" : "<tr class=\"odd\">";
foreach($row as $field => $value) {
if($field == "time") {
$value = strftime("%c", $value);
$value = human_timestamp($value);
}
echo "<td>". stripslashes($value) . "</td>";
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment