mirror of
https://github.com/grocy/grocy.git
synced 2026-04-05 12:26:15 +02:00
Parse arguments for offset
This commit is contained in:
parent
669d2d1e48
commit
272eacc1f8
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user