fix: switch updatedAt to datetime_immutable

This commit is contained in:
Maël Gangloff
2024-09-04 18:33:02 +02:00
parent b4aef61de2
commit 71173306d6
6 changed files with 40 additions and 7 deletions

View File

@@ -65,7 +65,7 @@ final readonly class UpdateDomainsFromWatchlistHandler
->filter(fn ($domain) => $domain->getUpdatedAt()
->diff(
new \DateTimeImmutable('now'))->days >= 7
|| $this->RDAPService::isToBeWatchClosely($domain, $domain->getUpdatedAt())
|| $this->RDAPService::isToBeWatchClosely($domain)
) as $domain
) {
$updatedAt = $domain->getUpdatedAt();