Merge branch 'fixTracaDates' into 'develop'
XmlTracaReader : Refix traca dates See merge request service-web-lab/le-gaulois!36
This commit is contained in:
commit
d4db7c57e6
1 changed files with 3 additions and 3 deletions
|
|
@ -63,13 +63,13 @@ class XmlTracaReader extends XmlJobs
|
|||
XmlTraceability::class,
|
||||
// phpcs:ignore Generic.CodeAnalysis.UnusedFunctionParameter.FoundInExtendedClassBeforeLastUsed
|
||||
function (\SimpleXMLElement $xmlContent, array &$line) {
|
||||
$abatage_date = \explode('-', $line['abatage_date']);
|
||||
$abatage_date = \explode('.', $line['abatage_date']);
|
||||
// * Inverser année et jours a cause du flux de merde
|
||||
$line['abatage_date'] = \sprintf(
|
||||
'20%s-%s-%s',
|
||||
'20%s/%s/%s',
|
||||
$abatage_date[2],
|
||||
$abatage_date[1],
|
||||
substr($abatage_date[0], 2)
|
||||
$abatage_date[0]
|
||||
);
|
||||
}
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue