Skip to content

Commit bf6e17e

Browse files
kenjisMGatner
andauthored
fix: add ! to createFromFormat()
Co-authored-by: MGatner <mgatner@icloud.com>
1 parent 05b7a30 commit bf6e17e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/system/HTTP/DownloadResponseTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public function testSetDateRemembersDateInUTC()
5050
{
5151
$response = new DownloadResponse('unit-test.txt', true);
5252

53-
$datetime = DateTime::createFromFormat('Y-m-d', '2000-03-10');
53+
$datetime = DateTime::createFromFormat('!Y-m-d', '2000-03-10');
5454
$response->setDate($datetime);
5555

5656
$date = clone $datetime;

0 commit comments

Comments
 (0)