diff --git a/app/Import/Specifics/IngDescription.php b/app/Import/Specifics/IngDescription.php index 26cdf47c8d..684daade09 100644 --- a/app/Import/Specifics/IngDescription.php +++ b/app/Import/Specifics/IngDescription.php @@ -140,7 +140,11 @@ class IngDescription implements SpecificInterface */ protected function removeNameIngDescription(): void { - $this->row[8] = preg_replace('/Naam:.*?([a-zA-Z\/]+:)/', '$1', $this->row[8]); + $matches = array(); + if (preg_match('/Valutadatum: ([0-9-]+)/', $this->row[8], $matches)) { + $this->row[9] = date("Ymd", strtotime($matches[1])); + $this->row[8] = preg_replace('/Valutadatum: [0-9-]+/', '', $this->row[8]); + } } /**