Skip to content

Commit

Permalink
use relative time in search results
Browse files Browse the repository at this point in the history
  • Loading branch information
splitbrain committed Mar 28, 2018
1 parent c6070d6 commit 0fc3880
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inc/Ui/Search.php
Expand Up @@ -586,7 +586,7 @@ protected function getFulltextResultsHTML($data, $highlight)
if ($num < FT_SNIPPET_NUMBER) { // create snippets for the first number of matches only
$snippet = '<dd>' . ft_snippet($id, $highlight) . '</dd>';
$lastMod = '<span class="search_results__lastmod">' . $lang['lastmod'] . ' ';
$lastMod .= '<time datetime="' . date_iso8601($mtime) . '">' . dformat($mtime) . '</time>';
$lastMod .= '<time datetime="' . date_iso8601($mtime) . '" title="'.dformat($mtime).'">' . dformat($mtime, '%f') . '</time>';
$lastMod .= '</span>';
}
$num++;
Expand Down

0 comments on commit 0fc3880

Please sign in to comment.