8000 [HttpFoundation] Fix transient tests · symfony/symfony@9f7a6bb · GitHub
[go: up one dir, main page]

Skip to content

Commit 9f7a6bb

Browse files
[HttpFoundation] Fix transient tests
1 parent 0eb4d2a commit 9f7a6bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/HttpFoundation/Response.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ public function __construct($content = '', $status = 200, $headers = array())
204204

205205
/* RFC2616 - 14.18 says all Responses need to have a Date */
206206
if (!$this->headers->has('Date')) {
207-
$this->setDate(new \DateTime(null, new \DateTimeZone('UTC')));
207+
$this->setDate(\DateTime::createFromFormat('U', time()));
208208
}
209209
}
210210

0 commit comments

Comments
 (0)
0