Skip to content
Snippets Groups Projects
Verified Commit 1a632044 authored by Damien's avatar Damien
Browse files

FEAT #12091 TIME 0:20 Fix calc priority

parent 880b3a0f
No related branches found
No related tags found
No related merge requests found
...@@ -281,7 +281,7 @@ class IndexingController ...@@ -281,7 +281,7 @@ class IndexingController
$diffUpdated = 0; $diffUpdated = 0;
for ($i = 1; $i <= $diff; $i++) { for ($i = 1; $i <= $diff; $i++) {
$tmpDate = $now; $tmpDate = new \DateTime();
$tmpDate->add(new \DateInterval("P{$i}D")); $tmpDate->add(new \DateInterval("P{$i}D"));
if (in_array($tmpDate->format('N'), [6, 7]) || in_array($tmpDate->format('d-m'), $hollidays)) { if (in_array($tmpDate->format('N'), [6, 7]) || in_array($tmpDate->format('d-m'), $hollidays)) {
continue; continue;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment