diff --git a/src/SslCertificate.php b/src/SslCertificate.php index 9679660..dcdf92c 100644 --- a/src/SslCertificate.php +++ b/src/SslCertificate.php @@ -162,7 +162,7 @@ public function expirationDate(): Carbon public function lifespanInDays(): int { - return $this->validFromDate()->diffInDays($this->expirationDate()); + return $this->validFromDate()->diffInDays($this->expirationDate(), false); } public function isExpired(): bool @@ -216,7 +216,7 @@ public function daysUntilExpirationDate(): int { $endDate = $this->expirationDate(); - return (int) Carbon::now()->diffInDays($endDate); + return (int) Carbon::now()->diffInDays($endDate, false); } public function getDomains(): array