Fixing time spent on LMS better integration -refs BT#11031

1.10.x
Nicolas Ducoulombier 8 years ago
parent 99d66c55df
commit ae43d264fb
  1. 3
      main/mySpace/works_in_session_report.php

@ -41,7 +41,6 @@ $usersInfo = [];
if ($session) { if ($session) {
$sessionCourses = $session->getCourses(); $sessionCourses = $session->getCourses();
$today = new DateTime('now', new DateTimeZone('UTC'));
foreach ($sessionCourses as $sessionCourse) { foreach ($sessionCourses as $sessionCourse) {
$course = $sessionCourse->getCourse(); $course = $sessionCourse->getCourse();
@ -56,7 +55,7 @@ if ($session) {
'code' => $user->getOfficialCode(), 'code' => $user->getOfficialCode(),
'complete_name' => $user->getCompleteName(), 'complete_name' => $user->getCompleteName(),
'time_in_platform' => api_time_to_hms( '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()), 'first_connection' => Tracking::get_first_connection_date($user->getId()),
'last_connection' => Tracking::get_last_connection_date($user->getId()) 'last_connection' => Tracking::get_last_connection_date($user->getId())

Loading…
Cancel
Save