@ -8,9 +8,7 @@ use Chamilo\CoreBundle\Entity\Session;
* Cron for send a email when the course are finished.
*
* @author Angel Fernando Quiroz Campos <angel.quiroz@beeznest.com>
*/
require_once __DIR__.'/../inc/global.inc.php';
if (php_sapi_name() !== 'cli') {
@ -1293,7 +1293,6 @@ class UserRepository extends EntityRepository
$dateNormalizer->setIgnoredAttributes($ignore);
$callback = function ($dateTime) {
return $dateTime instanceof \DateTime ? $dateTime->format(\DateTime::ISO8601) : '';
};