Skip to content

Commit a3a49e4

Browse files
committed
Apply toDateString so that the it equally compare date only, evades including time/hour comparing
1 parent b3996f1 commit a3a49e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/Models/Actionlog.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,7 @@ public function daysUntilNextAudit($monthInterval = 12, $asset = null)
375375
}
376376

377377
// Show as negative number if the next audit date is before the audit date we're looking at
378-
if ($this->created_at > $override_default_next) {
378+
if ($this->created_at->toDateString() > $override_default_next->toDateString()) {
379379
$next_audit_days = '-'.$next_audit_days;
380380
}
381381

0 commit comments

Comments
 (0)