Traitement date à 0
This commit is contained in:
parent
10dda43a79
commit
d6ca919aa4
@ -227,12 +227,16 @@ foreach ($sourcesList as $source => $item) {
|
||||
}
|
||||
continue;
|
||||
}
|
||||
if ($survResult->dateUpdate == '0000-00-00 00:00:00') {
|
||||
$toCalculate = true;
|
||||
} else {
|
||||
$calculDate = DateTime::createFromFormat('YmdHis', $survResult->dateUpdate);
|
||||
$evenDate = DateTime::createFromFormat('YmdHis', $item->dateEven);
|
||||
if ($evenDate > $calculDate) {
|
||||
$toCalculate = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// --- Calcul
|
||||
if ($toCalculate) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user