mirror of
https://github.com/maelgangloff/domain-watchdog.git
synced 2025-12-29 16:15:04 +00:00
fix: time diff calculation
This commit is contained in:
@@ -64,12 +64,14 @@ final readonly class UpdateDomainsFromWatchlistHandler
|
||||
foreach ($watchList->getDomains()
|
||||
->filter(fn ($domain) => $domain->getUpdatedAt()
|
||||
->diff(
|
||||
new \DateTimeImmutable('now'))->days >= 7
|
||||
new \DateTimeImmutable())->days >= 7
|
||||
|| (
|
||||
$this->RDAPService::isToBeWatchClosely($domain)
|
||||
&& $domain->getUpdatedAt()
|
||||
->diff(
|
||||
new \DateTimeImmutable('now'))->i >= 55
|
||||
($domain->getUpdatedAt()
|
||||
->diff(
|
||||
new \DateTimeImmutable())->h * 60 + $domain->getUpdatedAt()
|
||||
->diff(
|
||||
new \DateTimeImmutable())->i) >= 50
|
||||
&& $this->RDAPService::isToBeWatchClosely($domain)
|
||||
)
|
||||
) as $domain
|
||||
) {
|
||||
|
||||
Reference in New Issue
Block a user