Skip to content

Commit 05c6578

Browse files
committed
r timestamp in milliseconds
1 parent 984563f commit 05c6578

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Controllers/WorkerController.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ public function queue(Request $request, WorkerInterface $worker, Container $lara
126126
'ReceiptHandle' => false,
127127
'Attributes' => [
128128
'ApproximateReceiveCount' => $request->header('X-Aws-Sqsd-Receive-Count'),
129-
'SentTimestamp' => strtotime($request->header('X-Aws-Sqsd-First-Received-At', ''))
129+
'SentTimestamp' => $request->headers->has('X-Aws-Sqsd-First-Received-At') ? strtotime($request->header('X-Aws-Sqsd-First-Received-At')) * 1000 : null
130130
]
131131
]);
132132

0 commit comments

Comments
 (0)