Undo api_get_local_time

remotes/angel/1.11.x
jmontoyaa 8 years ago
parent a1af8fa59b
commit ddb47b3ece
  1. 2
      main/cron/import_csv.php
  2. 4
      main/inc/lib/sessionmanager.lib.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) {

@ -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;

Loading…
Cancel
Save