module/FzyCommon/src/FzyCommon/Entity/Base.php
public function tsGetFormatted(\DateTime $tsProperty = null, $format = self::DEFAULT_DATE_FORMAT, $timezone = null)
    {
        if ($tsProperty === null) {
            return '';
        }
        $shiftedTs = clone $tsProperty;

        return $this->setDtTz($shiftedTs, $timezone)->format($format);
    }
public function tsGetFormatted(\DateTime $tsProperty = null, $format = self::DEFAULT_DATE_FORMAT, $timezone = null)
    {
        if ($tsProperty === null) {
            return '';
        }
        $shiftedTs = clone $tsProperty;

        return $this->setDtTz($shiftedTs, $timezone)->format($format);
    }
Returns a formatted form of the datetime property, if the property is not null

NOTE: the datetime is cloned and converted to EDT timezone since all doctrine
data is UTC (coming from RDS)
@param  \DateTime $tsProperty
@param $format
@param  string    $timezone   - Pass in a timezone string or false
@return string