]> git.wh0rd.org Git - tt-rss.git/commitdiff
use smart_date_time in user prefs
authorAndrew Dolgov <fox@madoka.spb.ru>
Wed, 31 Jan 2007 05:24:18 +0000 (06:24 +0100)
committerAndrew Dolgov <fox@madoka.spb.ru>
Wed, 31 Jan 2007 05:24:18 +0000 (06:24 +0100)
modules/pref-users.php

index c2c65b84fa032953d9c5aa4571f32d4da142ed9e..c3b85219d2d485d2c91c9fe482576e74149fb642 100644 (file)
 
                        $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");