Skip to content

A free open source IT asset/license management system

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

iryadifarhana3a49e47b7bf
diff --git a/app/Models/Actionlog.php b/app/Models/Actionlog.php
index fba7616496..4baabd849c 100755
--- a/app/Models/Actionlog.php
+++ b/app/Models/Actionlog.php
@@ -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;
}