Adjust the timecheck #392
This commit is contained in:
parent
6effa53997
commit
ae17b23b2c
1 changed files with 2 additions and 2 deletions
|
|
@ -2701,14 +2701,14 @@ class APIController extends Controller implements LoggedController
|
|||
// TODO: remove the time check after ECQ. This will then always return true
|
||||
// get current time
|
||||
$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
|
||||
$hour = $current_datetime->format('G');
|
||||
|
||||
error_log($hour);
|
||||
|
||||
if (($hour < 8) || ($hour > 17))
|
||||
if (($hour < 8) || ($hour > 16))
|
||||
$schedule_choice = false;
|
||||
|
||||
$data = [
|
||||
|
|
|
|||
Loading…
Reference in a new issue