1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-19 23:51:28 +00:00

option HEADLINES_SMART_DATE

This commit is contained in:
Andrew Dolgov
2005-11-28 08:43:03 +01:00
parent 63186cdb78
commit be773442d2
4 changed files with 31 additions and 2 deletions

View File

@@ -1098,8 +1098,13 @@
print "</td>";
}
$updated_fmt = date(get_pref($link, 'SHORT_DATE_FORMAT'),
strtotime($line["updated"]));
if (get_pref($link, 'HEADLINES_SMART_DATE')) {
$updated_fmt = smart_date_time(strtotime($line["updated"]));
} else {
$short_date = get_pref($link, 'SHORT_DATE_FORMAT');
$updated_fmt = date($short_date, strtotime($line["updated"]));
}
print "<td class=\"hlUpdated\"><nobr>$updated_fmt</nobr></td>";
print "</tr>";