Adjust the timecheck #392

This commit is contained in:
Korina Cordero 2020-04-30 07:32:37 +00:00
parent 6effa53997
commit ae17b23b2c

View file

@ -2701,14 +2701,14 @@ class APIController extends Controller implements LoggedController
// TODO: remove the time check after ECQ. This will then always return true // TODO: remove the time check after ECQ. This will then always return true
// get current time // get current time
$current_datetime = new DateTime(); $current_datetime = new DateTime();
//$current_datetime = DateTime::createFromFormat('Y-m-d H:i', '2020-04-30 13:34'); //$current_datetime = DateTime::createFromFormat('Y-m-d H:i', '2020-04-30 17:01');
// get the hour // get the hour
$hour = $current_datetime->format('G'); $hour = $current_datetime->format('G');
error_log($hour); error_log($hour);
if (($hour < 8) || ($hour > 17)) if (($hour < 8) || ($hour > 16))
$schedule_choice = false; $schedule_choice = false;
$data = [ $data = [