summaryrefslogtreecommitdiff
path: root/backend.php
diff options
context:
space:
mode:
Diffstat (limited to 'backend.php')
-rw-r--r--backend.php9
1 files changed, 7 insertions, 2 deletions
diff --git a/backend.php b/backend.php
index 81f566b01..c81e1ccb1 100644
--- a/backend.php
+++ b/backend.php
@@ -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>";