From 23d959b73e39078850288b319e35936a5ea778ff Mon Sep 17 00:00:00 2001 From: Joe Hunt Date: Tue, 19 Feb 2019 08:28:59 +0100 Subject: [PATCH] Fixed users Last Visit Date with Time. @kvvaradha and @apmuthu. --- admin/users.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/admin/users.php b/admin/users.php index c19a7dd9..fbb42a67 100644 --- a/admin/users.php +++ b/admin/users.php @@ -133,7 +133,9 @@ while ($myrow = db_fetch($result)) alt_table_row_color($k); - $last_visit_date = sql2date($myrow["last_visit_date"]); + $time_format = (user_date_format() == 0 ? "h:i a" : "H:i"); + $last_visit_date = sql2date($myrow["last_visit_date"]). " " . + date($time_format, strtotime($myrow["last_visit_date"])); /*The security_headings array is defined in config.php */ $not_me = strcasecmp($myrow["user_id"], $_SESSION["wa_current_user"]->username); -- 2.30.2