[geeklog-cvs] geeklog: Use COM_getUserDateTimeFormat, i.e. the user's preferre...

geeklog-cvs at lists.geeklog.net geeklog-cvs at lists.geeklog.net
Sat Aug 1 16:47:39 EDT 2009


details:   http://project.geeklog.net/cgi-bin/hgweb.cgi/rev/c63444adf474
changeset: 7216:c63444adf474
user:      Dirk Haun <dirk at haun-online.de>
date:      Sat Aug 01 21:39:34 2009 +0200
description:
Use COM_getUserDateTimeFormat, i.e. the user's preferred format, for displaying the date and time in search results

diffstat:

 public_html/docs/history        |  2 ++
 system/classes/search.class.php |  3 ++-
 2 files changed, 4 insertions(+), 1 deletions(-)

diffs (25 lines):

diff -r 8c668abba68e -r c63444adf474 public_html/docs/history
--- a/public_html/docs/history	Sat Aug 01 18:37:21 2009 +0200
+++ b/public_html/docs/history	Sat Aug 01 21:39:34 2009 +0200
@@ -3,6 +3,8 @@
 ??? ??, 2009 (1.6.1)
 ------------
 
+- Use COM_getUserDateTimeFormat, i.e. the user's preferred format, for
+  displaying the date and time in search results [Dirk]
 - When disabling a feed, delete the feed file [Dirk]
 - Fixed an SQL error when the commentcode field was auto-updated (reported by
   Jokke_K) [Dirk]
diff -r 8c668abba68e -r c63444adf474 system/classes/search.class.php
--- a/system/classes/search.class.php	Sat Aug 01 18:37:21 2009 +0200
+++ b/system/classes/search.class.php	Sat Aug 01 21:39:34 2009 +0200
@@ -765,7 +765,8 @@
             }
 
             if ($row['date'] != 'LF_NULL') {
-                $row['date'] = strftime($_CONF['daytime'], intval($row['date']));
+                $dt = COM_getUserDateTimeFormat(intval($row['date']));
+                $row['date'] = $dt[0];
             }
 
             if ($row['hits'] != 'LF_NULL') {



More information about the geeklog-cvs mailing list