소스 검색

Use api_get_local_time() fix BT#12531

Nicolas Ducoulombier 7 년 전
부모
커밋
88fdd79ad8
1개의 변경된 파일2개의 추가작업 그리고 4개의 파일을 삭제
  1. 2 4
      main/mySpace/works_in_session_report.php

+ 2 - 4
main/mySpace/works_in_session_report.php

@@ -108,10 +108,8 @@ if ($session) {
                 continue;
             }
 
-            $usersInfo[$user->getId()][$course->getId() . '_last_sent_date'] = api_format_date(
-                $lastPublication->getSentDate()->getTimestamp(),
-                DATE_TIME_FORMAT_SHORT
-            );
+            $usersInfo[$user->getId()][$course->getId() . '_last_sent_date'] = api_get_local_time(
+                $lastPublication->getSentDate()->getTimestamp());
         }
     }
 }