src/Http/Response.php
public function setDate(\DateTime $date): self
    {
        $date->setTimezone(new \DateTimeZone('UTC'));
        $this->header->set('Date', $date->format('D, d M Y H:i:s') . ' GMT');

        return $this;
    }
public function setDate(\DateTime $date): self
    {
        $date->setTimezone(new \DateTimeZone('UTC'));
        $this->header->set('Date', $date->format('D, d M Y H:i:s') . ' GMT');

        return $this;
    }
public function setDate ( \ DateTime $ date ) : self { $ date -> setTimezone ( new \ DateTimeZone ( 'UTC' ) ) ; $ this -> header -> set ( 'Date' , $ date -> format ( 'D, d M Y H:i:s' ) . ' GMT' ) ; return $ this ; }
Sets the Date header.

@param \DateTime $date A \DateTime instance

@return $this
Sets the Date header .