mirror of
https://github.com/grokability/snipe-it.git
synced 2026-03-12 17:52:00 +08:00
Apply toDateString so that the it equally compare date only, evades including time/hour comparing
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user