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()
|
foreach ($watchList->getDomains()
|
||||||
->filter(fn ($domain) => $domain->getUpdatedAt()
|
->filter(fn ($domain) => $domain->getUpdatedAt()
|
||||||
->diff(
|
->diff(
|
||||||
new \DateTimeImmutable('now'))->days >= 7
|
new \DateTimeImmutable())->days >= 7
|
||||||
|| (
|
|| (
|
||||||
$this->RDAPService::isToBeWatchClosely($domain)
|
($domain->getUpdatedAt()
|
||||||
&& $domain->getUpdatedAt()
|
->diff(
|
||||||
->diff(
|
new \DateTimeImmutable())->h * 60 + $domain->getUpdatedAt()
|
||||||
new \DateTimeImmutable('now'))->i >= 55
|
->diff(
|
||||||
|
new \DateTimeImmutable())->i) >= 50
|
||||||
|
&& $this->RDAPService::isToBeWatchClosely($domain)
|
||||||
)
|
)
|
||||||
) as $domain
|
) as $domain
|
||||||
) {
|
) {
|
||||||
|
|||||||
Reference in New Issue
Block a user