Kaynağa Gözat

Use api_get_local_time() fix BT#12531

Nicolas Ducoulombier 7 yıl önce
ebeveyn
işleme
88fdd79ad8
1 değiştirilmiş dosya ile 2 ekleme ve 4 silme
  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());
         }
     }
 }