Skip to content
This repository has been archived by the owner on Jul 28, 2022. It is now read-only.

Commit

Permalink
Fix AMQP message timestamp error
Browse files Browse the repository at this point in the history
  • Loading branch information
jo66 authored and OskarStark committed Mar 13, 2019
1 parent 621b79b commit 319e723
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Backend/AMQPBackend.php
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ public function publish(MessageInterface $message)

$amqpMessage = $this->getContext()->createMessage($body);
$amqpMessage->setContentType('text/plain'); // application/json ?
$amqpMessage->setTimestamp($message->getCreatedAt()->format('U'));
$amqpMessage->setTimestamp($message->getCreatedAt()->getTimestamp());
$amqpMessage->setDeliveryMode(AmqpMessage::DELIVERY_MODE_PERSISTENT);
$amqpMessage->setRoutingKey($this->key);

Expand Down

0 comments on commit 319e723

Please sign in to comment.