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

        return $this;
    }
public function setDateHeader(DateTime $date): Response
    {
        $date->setTimezone(new DateTimeZone('UTC'));
        $this->headers->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 \Valkyrja\Http\Response