public function toRss($dateString, $timezone = null)
    {
        $timezone = $this->_getTimezone($timezone) ?: date_default_timezone_get();

        return (new Time($dateString))->timezone($timezone)->toRssString();
    }
public function toRss($dateString, $timezone = null)
    {
        $timezone = $this->_getTimezone($timezone) ?: date_default_timezone_get();

        return (new Time($dateString))->timezone($timezone)->toRssString();
    }
public function toRss ( $ dateString , $ timezone = null ) { $ timezone = $ this -> _getTimezone ( $ timezone ) ? : date_default_timezone_get ( ) ; return ( new Time ( $ dateString ) ) -> timezone ( $ timezone ) -> toRssString ( ) ; }
Formats date for RSS feeds

@param int|string|\DateTime $dateString UNIX timestamp, strtotime() valid string or DateTime object
@param string|\DateTimeZone|null $timezone User's timezone string or DateTimeZone object
@return string Formatted date string
Formats date for RSS feeds