[Doctrine DBAL] Invalid timestamp of published_at value
andrewprofile opened this issue · 1 comments
andrewprofile commented
$publishedAt = null !== $message->getPublishedAt() ?
$message->getPublishedAt() :
(int) (microtime(true) * 10000)
;
microtime return value in seconds so the conversion to timestamp is invalid, ex : 16551970635236 -> GMT: Monday, 5 July 2494 17:37:15.236
andrewprofile commented
published_at does not represent the date, but the created time in milliseconds.