Skip to content

Commit

Permalink
r timestamp in milliseconds
Browse files Browse the repository at this point in the history
  • Loading branch information
dusterio committed Nov 27, 2022
1 parent 984563f commit 05c6578
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Controllers/WorkerController.php
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ public function queue(Request $request, WorkerInterface $worker, Container $lara
'ReceiptHandle' => false,
'Attributes' => [
'ApproximateReceiveCount' => $request->header('X-Aws-Sqsd-Receive-Count'),
'SentTimestamp' => strtotime($request->header('X-Aws-Sqsd-First-Received-At', ''))
'SentTimestamp' => $request->headers->has('X-Aws-Sqsd-First-Received-At') ? strtotime($request->header('X-Aws-Sqsd-First-Received-At')) * 1000 : null
]
]);

Expand Down

0 comments on commit 05c6578

Please sign in to comment.