diff --git a/Neos.ContentGraph.DoctrineDbalAdapter/src/Domain/Projection/NodeRecord.php b/Neos.ContentGraph.DoctrineDbalAdapter/src/Domain/Projection/NodeRecord.php index 0b8b7398f5e..fb9ed20a9fc 100644 --- a/Neos.ContentGraph.DoctrineDbalAdapter/src/Domain/Projection/NodeRecord.php +++ b/Neos.ContentGraph.DoctrineDbalAdapter/src/Domain/Projection/NodeRecord.php @@ -200,7 +200,7 @@ public static function createCopyFromNodeRecord( private static function parseDateTimeString(string $string): \DateTimeImmutable { - $result = \DateTimeImmutable::createFromFormat('Y-m-d H:i:s', $string); + $result = \DateTimeImmutable::createFromFormat('Y-m-d H:i:s', $string, new \DateTimeZone('UTC')); if ($result === false) { throw new \RuntimeException(sprintf('Failed to parse "%s" into a valid DateTime', $string), 1678902055); } diff --git a/Neos.ContentGraph.DoctrineDbalAdapter/src/Domain/Repository/NodeFactory.php b/Neos.ContentGraph.DoctrineDbalAdapter/src/Domain/Repository/NodeFactory.php index f96a6c7cb31..d0b3ab8af50 100644 --- a/Neos.ContentGraph.DoctrineDbalAdapter/src/Domain/Repository/NodeFactory.php +++ b/Neos.ContentGraph.DoctrineDbalAdapter/src/Domain/Repository/NodeFactory.php @@ -336,7 +336,7 @@ public static function extractNodeTagsFromJson(string $subtreeTagsJson): NodeTag private static function parseDateTimeString(string $string): \DateTimeImmutable { - $result = \DateTimeImmutable::createFromFormat('Y-m-d H:i:s', $string); + $result = \DateTimeImmutable::createFromFormat('Y-m-d H:i:s', $string, new \DateTimeZone('UTC')); if ($result === false) { throw new \RuntimeException(sprintf('Failed to parse "%s" into a valid DateTime', $string), 1678902055); } diff --git a/Neos.ContentGraph.PostgreSQLAdapter/src/Domain/Repository/NodeFactory.php b/Neos.ContentGraph.PostgreSQLAdapter/src/Domain/Repository/NodeFactory.php index eb3effb51c0..174db1b35ee 100644 --- a/Neos.ContentGraph.PostgreSQLAdapter/src/Domain/Repository/NodeFactory.php +++ b/Neos.ContentGraph.PostgreSQLAdapter/src/Domain/Repository/NodeFactory.php @@ -342,7 +342,7 @@ public function mapNodeRowsToNodeAggregates(array $nodeRows, VisibilityConstrain private static function parseDateTimeString(string $string): \DateTimeImmutable { - $result = \DateTimeImmutable::createFromFormat('Y-m-d H:i:s', $string); + $result = \DateTimeImmutable::createFromFormat('Y-m-d H:i:s', $string, new \DateTimeZone('UTC')); if ($result === false) { throw new \RuntimeException(sprintf('Failed to parse "%s" into a valid DateTime', $string), 1678902055); }