diff --git a/app/Models/Actionlog.php b/app/Models/Actionlog.php index fba7616496e2..4baabd849c52 100755 --- a/app/Models/Actionlog.php +++ b/app/Models/Actionlog.php @@ -375,7 +375,7 @@ public function daysUntilNextAudit($monthInterval = 12, $asset = null) } // Show as negative number if the next audit date is before the audit date we're looking at - if ($this->created_at > $override_default_next) { + if ($this->created_at->toDateString() > $override_default_next->toDateString()) { $next_audit_days = '-'.$next_audit_days; }