diff options
author | Bernhard Posselt <BernhardPosselt@users.noreply.github.com> | 2016-08-28 08:37:56 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-08-28 08:37:56 +0200 |
commit | 1576df54924c21c816f385a77a13983199f2aefc (patch) | |
tree | c047026f39d61c76466a2f7dd43c6dbe908ebb08 /lib | |
parent | 0daa9425b68f0035887c169aed2e92d1aca6fea2 (diff) | |
parent | 4acfe5ab74ce777b0f09fe5964f113666ac1f4f1 (diff) |
Merge pull request #25 from nextcloud/updated-api
Fix #24
Diffstat (limited to 'lib')
-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) ); } |