From be773442d23f8038549f23ed012101a86270451c Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Mon, 28 Nov 2005 08:43:03 +0100 Subject: option HEADLINES_SMART_DATE --- backend.php | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'backend.php') diff --git a/backend.php b/backend.php index 81f566b01..c81e1ccb1 100644 --- a/backend.php +++ b/backend.php @@ -1098,8 +1098,13 @@ print ""; } - $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 "$updated_fmt"; print ""; -- cgit v1.2.3-54-g00ecf