diff --git a/main/exercice/exercise_result.class.php b/main/exercice/exercise_result.class.php index c72855344c..3adaba89e9 100755 --- a/main/exercice/exercise_result.class.php +++ b/main/exercice/exercise_result.class.php @@ -116,7 +116,7 @@ class ExerciseResult AND cuser.course_code=te.exe_cours_id ORDER BY te.exe_cours_id ASC, ce.title ASC, te.exe_date ASC"; $hpsql="SELECT ".(api_is_western_name_order() ? "CONCAT(tu.firstname,' ',tu.lastname)" : "CONCAT(tu.lastname,' ',tu.firstname)").", tth.exe_name, - tth.exe_result , tth.exe_weighting, UNIX_TIMESTAMP(tth.exe_date), tu.email, tu.user_id + tth.exe_result , tth.exe_weighting, tth.exe_date, tu.email, tu.user_id FROM $TBL_TRACK_HOTPOTATOES tth, $TBL_USER tu WHERE tu.user_id=tth.exe_user_id AND tth.exe_cours_id = '" . Database :: escape_string($cid) . " $user_id_and ' ORDER BY tth.exe_cours_id ASC, tth.exe_date ASC"; diff --git a/main/mySpace/myStudents.php b/main/mySpace/myStudents.php index c0e3fd8a99..c4e5c9dacd 100755 --- a/main/mySpace/myStudents.php +++ b/main/mySpace/myStudents.php @@ -598,14 +598,14 @@ if ($timezone !== null) { else $css_class = "row_even"; $i++; - + // csv export content $csv_content[] = array ( api_html_entity_decode(stripslashes($lp_name), ENT_QUOTES, $charset), api_time_to_hms($total_time), $score . '%', $progress, - api_convert_and_format_date($start_time, "%Y-%m-%d") + date('Y-m-d h:i:s', $start_time) ); ?> @@ -637,7 +637,9 @@ if ($timezone !== null) { 0) { - echo api_convert_and_format_date($start_time, DATE_FORMAT_SHORT); + //Do not change with api_convert_and_format_date, because this value came from the lp_item_view table + //which implies several other changes not a priority right now + echo date('Y-m-d h:i:s', $start_time); } else { echo '-'; } diff --git a/main/tracking/courseLog.php b/main/tracking/courseLog.php index c7256418bf..640abb6479 100755 --- a/main/tracking/courseLog.php +++ b/main/tracking/courseLog.php @@ -1,17 +1,16 @@ - - For a full list of contributors, see "credits.txt". - The full license can be read in "license.txt". - - This program is free software; you can redistribute it and/or - modify it under the terms of the GNU General Public License - as published by the Free Software Foundation; either version 2 - of the License, or (at your option) any later version. - - See the GNU General Public License for more details. - - Contact: Dokeos, 181 rue Royale, B-1000 Brussels, Belgium, info@dokeos.com -============================================================================== -*/ +/* For licensing terms, see /license.txt */ // TODO: Is this file deprecated? /** -============================================================================== -* @package dokeos.tracking +* @package chamilo.tracking * @todo clean code - structure is unclear and difficult to modify -============================================================================== */ /* -============================================================================== INIT SECTION -============================================================================== */ $uInfo = $_REQUEST['uInfo']; $view = $_REQUEST['view']; diff --git a/main/tracking/userlogCSV.php b/main/tracking/userlogCSV.php index f1ad639858..e8bae2385b 100755 --- a/main/tracking/userlogCSV.php +++ b/main/tracking/userlogCSV.php @@ -1,28 +1,5 @@ - - For a full list of contributors, see "credits.txt". - The full license can be read in "license.txt". - - This program is free software; you can redistribute it and/or - modify it under the terms of the GNU General Public License - as published by the Free Software Foundation; either version 2 - of the License, or (at your option) any later version. - - See the GNU General Public License for more details. - - Contact: Dokeos, 181 rue Royale, B-1000 Brussels, Belgium, info@dokeos.com -============================================================================== -*/ - +/* For licensing terms, see /license.txt */ // TODO: Is this file deprecated? /**