From 22d4e7df0c800cd6b185351defba4d6d02a106bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Fromme?= Date: Fri, 28 Mar 2025 13:20:15 +0100 Subject: [PATCH] feat: disable one year limit when importing dates addresses #8698gjh5u --- .../ep_products/Classes/Service/DateImportService.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/public/typo3conf/ext/ep_products/Classes/Service/DateImportService.php b/public/typo3conf/ext/ep_products/Classes/Service/DateImportService.php index 382ae083..7278d31d 100644 --- a/public/typo3conf/ext/ep_products/Classes/Service/DateImportService.php +++ b/public/typo3conf/ext/ep_products/Classes/Service/DateImportService.php @@ -280,14 +280,14 @@ class DateImportService implements SingletonInterface, LoggerAwareInterface protected function parseDates(\SimpleXMLElement $xmlDate, array $product): int { $dateCount = 0; - $earliestDate = new \DateTimeImmutable('next year'); +// $earliestDate = new \DateTimeImmutable('next year'); foreach ($xmlDate->hotel as $xmlHotel) { // don't import dates starting later than one year from now - $dateStart = \DateTime::createFromFormat('d.m.Y', (string) $xmlDate->attributes()['termin']); - if ($dateStart > $earliestDate) { - continue; - } +// $dateStart = \DateTime::createFromFormat('d.m.Y', (string) $xmlDate->attributes()['termin']); +// if ($dateStart > $earliestDate) { +// continue; +// } $date = $this->createDateRecord($product, $xmlDate);