From 6fcee03a5d27ccf510d877d0dfc18ed60ab00da7 Mon Sep 17 00:00:00 2001 From: Wilhelm Behncke Date: Mon, 16 Sep 2024 17:19:18 +0200 Subject: [PATCH] BUGFIX: Convert *DateTime XML elements to \DateTimeImmutable during import --- .../Classes/Domain/Service/ImportExport/NodeImportService.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Neos.ContentRepository/Classes/Domain/Service/ImportExport/NodeImportService.php b/Neos.ContentRepository/Classes/Domain/Service/ImportExport/NodeImportService.php index 45e4ecc39fc..a5183e6aa8c 100644 --- a/Neos.ContentRepository/Classes/Domain/Service/ImportExport/NodeImportService.php +++ b/Neos.ContentRepository/Classes/Domain/Service/ImportExport/NodeImportService.php @@ -321,7 +321,7 @@ protected function parseElement(\XMLReader $xmlReader) case 'lastModificationDateTime': case 'lastPublicationDateTime': $stringValue = trim($xmlReader->readString()); - $dateValue = $this->propertyMapper->convert($stringValue, 'DateTime', $this->propertyMappingConfiguration); + $dateValue = $this->propertyMapper->convert($stringValue, 'DateTimeImmutable', $this->propertyMappingConfiguration); $this->nodeDataStack[count($this->nodeDataStack) - 1][$elementName] = $dateValue; break; default: