Apply toDateString so that the it equally compare date only, evades including time/hour comparing

This commit is contained in:
iryadifarhan
2025-11-26 13:21:15 +07:00
parent b3996f1970
commit a3a49e47b7

View File

@@ -375,7 +375,7 @@ class Actionlog extends SnipeModel
}
// 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;
}