|
|
|
@ -41,7 +41,6 @@ $usersInfo = []; |
|
|
|
|
|
|
|
|
|
if ($session) { |
|
|
|
|
$sessionCourses = $session->getCourses(); |
|
|
|
|
$today = new DateTime('now', new DateTimeZone('UTC')); |
|
|
|
|
|
|
|
|
|
foreach ($sessionCourses as $sessionCourse) { |
|
|
|
|
$course = $sessionCourse->getCourse(); |
|
|
|
@ -56,7 +55,7 @@ if ($session) { |
|
|
|
|
'code' => $user->getOfficialCode(), |
|
|
|
|
'complete_name' => $user->getCompleteName(), |
|
|
|
|
'time_in_platform' => api_time_to_hms( |
|
|
|
|
Tracking::get_time_spent_on_the_platform($user->getId(), 'custom', '0000:00:00', $today->format('Y-m-d H:i:s')) |
|
|
|
|
Tracking::get_time_spent_on_the_platform($user->getId(), 'ever') |
|
|
|
|
), |
|
|
|
|
'first_connection' => Tracking::get_first_connection_date($user->getId()), |
|
|
|
|
'last_connection' => Tracking::get_last_connection_date($user->getId()) |
|
|
|
|