Fixing course progress date

skala
Julio Montoya 13 years ago
parent de3ab36d52
commit deb6f27702
  1. 3
      main/course_progress/thematic_controller.php
  2. 8
      main/inc/lib/thematic.lib.php

@ -180,8 +180,7 @@ class ThematicController {
$advance_html = null;
if (!empty($data)) {
foreach ($data as $advance) {
//DATE_TIME_FORMAT_LONG
$advance_html .= api_convert_and_format_date($advance['start_date'], DATE_FORMAT_ONLY_DAYNAME) . ' ('.$advance['duration'].' '.get_lang('HourShort').')<br />'.$advance['content'].'<br />';
$advance_html .= api_convert_and_format_date($advance['start_date'], DATE_FORMAT_LONG) . ' ('.$advance['duration'].' '.get_lang('HourShort').')<br />'.$advance['content'].'<br />';
}
}
$table[] = array($theme['title'], $plan_html, $advance_html);

@ -479,7 +479,7 @@ class Thematic
}
}
//DATE_TIME_FORMAT_LONG
$thematic_advance_item = '<div><strong>'.api_convert_and_format_date($thematic_advance['start_date'], DATE_FORMAT_ONLY_DAYNAME).$session_star.'</strong></div>';
$thematic_advance_item = '<div><strong>'.api_convert_and_format_date($thematic_advance['start_date'], DATE_FORMAT_LONG).$session_star.'</strong></div>';
// $thematic_advance_item .= '<div>'.get_lang('DurationInHours').' : '.$thematic_advance['duration'].'</div>';
$thematic_advance_item .= '<div>'.$thematic_advance['duration'].' '.get_lang('HourShort').'</div>';
$thematic_advance_item .= '<div>'.Security::remove_XSS($thematic_advance['content'], STUDENT).'</div>';
@ -743,10 +743,8 @@ class Thematic
$data[] = $row;
}
}
}
}
}
}
return $data;
}

Loading…
Cancel
Save