src/Common/Service/DateTime.php
public function toUserDate($mTimestamp = null, $sFormat = null)
    {
        $oConverted = static::convert($mTimestamp, $this->sTimezoneUser, $this->sTimezoneNails);

        if (is_null($oConverted)) {
            return null;
        }

        if (is_null($sFormat)) {
            $sFormat = $this->sUserFormatDate;
        }

        return $oConverted->format($sFormat);
    }
public function toUserDate($mTimestamp = null, $sFormat = null)
    {
        $oConverted = static::convert($mTimestamp, $this->sTimezoneUser, $this->sTimezoneNails);

        if (is_null($oConverted)) {
            return null;
        }

        if (is_null($sFormat)) {
            $sFormat = $this->sUserFormatDate;
        }

        return $oConverted->format($sFormat);
    }
public function toUserDate ( $ mTimestamp = null , $ sFormat = null ) { $ oConverted = static :: convert ( $ mTimestamp , $ this -> sTimezoneUser , $ this -> sTimezoneNails ) ; if ( is_null ( $ oConverted ) ) { return null ; } if ( is_null ( $ sFormat ) ) { $ sFormat = $ this -> sUserFormatDate ; } return $ oConverted -> format ( $ sFormat ) ; }
Convert a date timestamp to the User's timezone from the Nails timezone

@param mixed  $mTimestamp The timestamp to convert
@param string $sFormat    The format of the timestamp to return, defaults to User's date preference

@return string
Convert a date timestamp to the User s timezone from the Nails timezone