From 866c5a897dc3f53d16edbebfc5d8736930e5a41d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Fri, 15 Jul 2011 22:26:33 +0000 Subject: [PATCH] Same date format in user details/list --- inc/modules/admin/what-list_user.php | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/inc/modules/admin/what-list_user.php b/inc/modules/admin/what-list_user.php index 58bc853aa3..2ffa33bbf2 100644 --- a/inc/modules/admin/what-list_user.php +++ b/inc/modules/admin/what-list_user.php @@ -104,18 +104,18 @@ LIMIT 1", // Is this above zero? if ($stamp > 0) { // Then use it - $content['birthday'] = generateDateTime($stamp, '3'); + $content['birthday'] = generateDateTime($stamp, '2'); } else { // Zero or below so set zero! - $content['birthday'] = generateDateTime(0, '3'); + $content['birthday'] = generateDateTime(0, '2'); } // Prepare data for template $content['email_link'] = generateEmailLink($content['email'], 'user_data'); - $content['last_online'] = generateDateTime($content['last_online'], '0'); - $content['joined'] = generateDateTime($content['joined'], '0'); - $content['last_update'] = generateDateTime($content['last_update'], '0'); - $content['last_profile_sent'] = generateDateTime($content['last_profile_sent'], '0'); + $content['last_online'] = generateDateTime($content['last_online'], '2'); + $content['joined'] = generateDateTime($content['joined'], '2'); + $content['last_update'] = generateDateTime($content['last_update'], '2'); + $content['last_profile_sent'] = generateDateTime($content['last_profile_sent'], '2'); $content['total_points'] = getTotalPoints($content['userid']); $content['locked_points'] = countSumTotalData($content['userid'], 'user_points', 'locked_points') + countSumTotalData($content['userid'], 'user_points', 'locked_order_points'); @@ -130,7 +130,7 @@ LIMIT 1", // Add more data $content['own_points'] = $data['points']; - $content['lock_timestamp'] = generateDateTime($content['lock_timestamp'], 2); + $content['lock_timestamp'] = generateDateTime($content['lock_timestamp'], '2'); // Link to email_details if some are sent if ($content['emails_sent'] > 0) { @@ -276,7 +276,7 @@ LIMIT 1", // Transfer data to array $content['email'] = '[' . $content['email'] . ']'; - $content['lock_timestamp'] = generateDateTime($content['lock_timestamp'], 2); + $content['lock_timestamp'] = generateDateTime($content['lock_timestamp'], '2'); $content['refs'] = countSumTotalData($content['userid'], 'user_refs', 'id', 'userid', true); $content['own_points'] = countSumTotalData($content['userid'], 'user_points', 'points') + countSumTotalData($content['userid'], 'user_points', 'order_points'); $content['locked_points'] = countSumTotalData($content['userid'], 'user_points', 'locked_points') + countSumTotalData($content['userid'], 'user_points', 'locked_order_points'); -- 2.39.5