eZ\Publish\Core\Repository\Helper\DomainMapper::getDateTime PHP Method

getDateTime() public method

This method is needed because constructing \DateTime with $timestamp will return the object in UTC timezone.
public getDateTime ( integer $timestamp ) : DateTime
$timestamp integer
return DateTime
    public function getDateTime($timestamp)
    {
        $dateTime = new DateTime();
        $dateTime->setTimestamp($timestamp);
        return $dateTime;
    }