summaryrefslogtreecommitdiff
path: root/modules/pref-users.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2007-01-31 06:24:18 +0100
committerAndrew Dolgov <[email protected]>2007-01-31 06:24:18 +0100
commit0b6f179e9375b2f5c3ea2c53d8467765a094f4d4 (patch)
treed10e2252e2effd76330c5a690d84c10ce6eae561 /modules/pref-users.php
parent17b3e8e624cc0359086882d869984cf0c991e385 (diff)
use smart_date_time in user prefs
Diffstat (limited to 'modules/pref-users.php')
-rw-r--r--modules/pref-users.php11
1 files changed, 9 insertions, 2 deletions
diff --git a/modules/pref-users.php b/modules/pref-users.php
index c2c65b84f..c3b85219d 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");