From: Andrew Dolgov Date: Wed, 31 Jan 2007 05:24:18 +0000 (+0100) Subject: use smart_date_time in user prefs X-Git-Tag: 1.2.8~16 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=0b6f179e9375b2f5c3ea2c53d8467765a094f4d4;p=tt-rss.git use smart_date_time in user prefs --- diff --git a/modules/pref-users.php b/modules/pref-users.php index c2c65b84..c3b85219 100644 --- a/modules/pref-users.php +++ b/modules/pref-users.php @@ -235,8 +235,15 @@ $line["login"] = htmlspecialchars($line["login"]); - $line["last_login"] = date(get_pref($link, 'SHORT_DATE_FORMAT'), - strtotime($line["last_login"])); +# $line["last_login"] = date(get_pref($link, 'SHORT_DATE_FORMAT'), +# strtotime($line["last_login"])); + + if (get_pref($link, 'HEADLINES_SMART_DATE')) { + $line["last_login"] = smart_date_time(strtotime($line["last_login"])); + } else { + $line["last_login"] = date(get_pref($link, 'SHORT_DATE_FORMAT'), + strtotime($line["last_login"])); + } $access_level_names = array(0 => "User", 10 => "Administrator");