]> git.mxchange.org Git - mailer.git/commitdiff
Same date format in user details/list
authorRoland Häder <roland@mxchange.org>
Fri, 15 Jul 2011 22:26:33 +0000 (22:26 +0000)
committerRoland Häder <roland@mxchange.org>
Fri, 15 Jul 2011 22:26:33 +0000 (22:26 +0000)
inc/modules/admin/what-list_user.php

index 58bc853aa343bef54e59715280e4cb8f08023691..2ffa33bbf29085513cd967d4183e9bed06bcd065 100644 (file)
@@ -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']          = '[<a href="' . generateEmailLink($content['email'], 'user_data') . '">' . $content['email'] . '</a>]';
-                       $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');