diff options
Diffstat (limited to 'lib/Controller/ItemApiController.php')
-rw-r--r-- | lib/Controller/ItemApiController.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/Controller/ItemApiController.php b/lib/Controller/ItemApiController.php index 43ff842b8..98342cd26 100644 --- a/lib/Controller/ItemApiController.php +++ b/lib/Controller/ItemApiController.php @@ -74,8 +74,10 @@ class ItemApiController extends ApiController { * @return array|mixed */ public function updated($type=3, $id=0, $lastModified=0) { + // needs to be turned into a millisecond timestamp to work properly + $paddedLastModified = $lastModified . '000000'; return $this->serializer->serialize( - $this->itemService->findAllNew($id, $type, $lastModified, + $this->itemService->findAllNew($id, $type, $paddedLastModified, true, $this->userId) ); } |