diff --git a/lib/Core/Mapper/DomainObjectMapper.php b/lib/Core/Mapper/DomainObjectMapper.php index 91efc9c0..2d7ec7c3 100644 --- a/lib/Core/Mapper/DomainObjectMapper.php +++ b/lib/Core/Mapper/DomainObjectMapper.php @@ -128,9 +128,6 @@ private function getUser($userId) private function getDateTime(int $timestamp): DateTimeInterface { - $date = new DateTimeImmutable(); - $date->setTimestamp($timestamp); - - return $date; + return DateTimeImmutable::createFromFormat('U', (string) $timestamp); } }