diff --git a/src/SslCertificate.php b/src/SslCertificate.php index d41fb84..9679660 100644 --- a/src/SslCertificate.php +++ b/src/SslCertificate.php @@ -216,9 +216,7 @@ public function daysUntilExpirationDate(): int { $endDate = $this->expirationDate(); - $interval = Carbon::now()->diff($endDate); - - return (int) $interval->format('%r%a'); + return (int) Carbon::now()->diffInDays($endDate); } public function getDomains(): array