Skip to content

Commit

Permalink
fix: time diff calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
maelgangloff committed Sep 6, 2024
1 parent ade9751 commit 684313b
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/MessageHandler/UpdateDomainsFromWatchlistHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,14 @@ public function __invoke(UpdateDomainsFromWatchlist $message): void
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
) {
Expand Down

0 comments on commit 684313b

Please sign in to comment.