Show correct time duration not calculated time duration see BT#14149

pull/2467/head
jmontoyaa 8 years ago
parent 90cb90bd52
commit d866b762a9
  1. 7
      main/inc/lib/tracking.lib.php

@ -1009,12 +1009,9 @@ class Tracking
$my_exo_exe_id = $row_attempts['exe_exo_id'];
$mktime_start_date = api_strtotime($row_attempts['start_date'], 'UTC');
$mktime_exe_date = api_strtotime($row_attempts['exe_date'], 'UTC');
$time_attemp = ' - ';
if ($mktime_start_date && $mktime_exe_date) {
$mytime = ((int) $mktime_exe_date - (int) $mktime_start_date);
$time_attemp = learnpathItem::getScormTimeFromParameter('js', $mytime);
$time_attemp = str_replace('NaN', '00'.$h.'00\'00"', $time_attemp);
} else {
$time_attemp = ' - ';
$time_attemp = api_format_time($row_attempts['exe_duration'], 'js');
}
if (!$is_allowed_to_edit && $result_disabled_ext_all) {
$view_score = Display::return_icon(

Loading…
Cancel
Save