summaryrefslogtreecommitdiffstats
path: root/lib/Controller/ItemApiController.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Controller/ItemApiController.php')
-rw-r--r--lib/Controller/ItemApiController.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Controller/ItemApiController.php b/lib/Controller/ItemApiController.php
index c958324af..af36b87f0 100644
--- a/lib/Controller/ItemApiController.php
+++ b/lib/Controller/ItemApiController.php
@@ -93,14 +93,14 @@ class ItemApiController extends ApiController
{
// needs to be turned into a millisecond timestamp to work properly
if (strlen((string) $lastModified) <= 10) {
- $paddedLastModified = $lastModified . '000000';
+ $paddedLastModified = $lastModified * 1000000;
} else {
$paddedLastModified = $lastModified;
}
$items = $this->oldItemService->findAllNew(
$id,
$type,
- $paddedLastModified,
+ (int) $paddedLastModified,
true,
$this->getUserId()
);