Model/MediaResponse.php
public function setUploaded($uploaded)
    {
        if ($uploaded instanceof DateTime) {
            $this->uploaded = $uploaded;
        } else {
            try {
                $this->uploaded = new DateTime($uploaded);
            } catch (\Exception $e) {
                $this->uploaded = null;
            }
        }

        return $this;
    }
public function setUploaded($uploaded)
    {
        if ($uploaded instanceof DateTime) {
            $this->uploaded = $uploaded;
        } else {
            try {
                $this->uploaded = new DateTime($uploaded);
            } catch (\Exception $e) {
                $this->uploaded = null;
            }
        }

        return $this;
    }
Sets the "uploaded" of the MediaResponse.

@param DateTime $uploaded

@return MediaResponse