Parse arguments for offset

This commit is contained in:
Marc Ole Bulling 2020-12-28 11:30:44 +01:00
parent 669d2d1e48
commit 272eacc1f8
No known key found for this signature in database
GPG Key ID: C126AFC2A47B06FF

View File

@ -45,7 +45,10 @@ class SystemApiController extends BaseApiController
public function GetSystemTime(\Psr\Http\Message\ServerRequestInterface $request, \Psr\Http\Message\ResponseInterface $response, array $args)
{
return $this->ApiResponse($response, $this->getApplicationService()->GetSystemTime());
$offset = 0;
if (isset($args['offset']))
$offset = $args['offset'];
return $this->ApiResponse($response, $this->getApplicationService()->GetSystemTime($offset));
}
public function LogMissingLocalization(\Psr\Http\Message\ServerRequestInterface $request, \Psr\Http\Message\ResponseInterface $response, array $args)