diff --git a/main/cron/import_csv.php b/main/cron/import_csv.php index bfffdca38f..5712ad9628 100755 --- a/main/cron/import_csv.php +++ b/main/cron/import_csv.php @@ -543,8 +543,6 @@ class ImportCsv $expirationDateOnCreate = api_get_utc_datetime(strtotime("+".intval($this->expirationDateInUserCreation)."years")); $expirationDateOnUpdate = api_get_utc_datetime(strtotime("+".intval($this->expirationDateInUserUpdate)."years")); - $userToUpdateList = []; - $counter = 1; foreach ($data as $row) { diff --git a/main/inc/lib/sessionmanager.lib.php b/main/inc/lib/sessionmanager.lib.php index afb5a7f754..acbe00fe29 100755 --- a/main/inc/lib/sessionmanager.lib.php +++ b/main/inc/lib/sessionmanager.lib.php @@ -4261,8 +4261,8 @@ class SessionManager $dateStart = explode('/', $enreg['DateStart']); $dateEnd = explode('/', $enreg['DateEnd']); - $dateStart = api_get_local_time($dateStart[0].'-'.$dateStart[1].'-'.$dateStart[2].' 00:00:00'); - $dateEnd = api_get_local_time($dateEnd[0].'-'.$dateEnd[1].'-'.$dateEnd[2].' 23:59:59'); + $dateStart = $dateStart[0].'-'.$dateStart[1].'-'.$dateStart[2].' 00:00:00'; + $dateEnd = $dateEnd[0].'-'.$dateEnd[1].'-'.$dateEnd[2].' 23:59:59'; $session_category_id = isset($enreg['SessionCategory']) ? $enreg['SessionCategory'] : null; $sessionDescription = isset($enreg['SessionDescription']) ? $enreg['SessionDescription'] : null;