fix: compare date with timestamp

This commit is contained in:
Maël Gangloff
2024-12-20 22:52:39 +01:00
parent 5d83386f1a
commit 817da2a652

View File

@@ -252,7 +252,7 @@ readonly class RDAPService
if (count($addedStatus) > 0 || count($deletedStatus) > 0) {
$this->em->persist($domain);
if ($domain->getUpdatedAt() != $domain->getCreatedAt()) {
if ($domain->getUpdatedAt()->getTimestamp() !== $domain->getCreatedAt()->getTimestamp()) {
$this->em->persist((new DomainStatus())
->setDomain($domain)
->setDate($domain->getUpdatedAt())