Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 4879a75

Browse files
minor #28504 [Form] Fix expected values in datetime-local test (mcfedr)
This PR was submitted for the master branch but it was merged into the 4.1 branch instead (closes #28504). Discussion ---------- [Form] Fix expected values in datetime-local test | Q | A | ------------- | --- | Branch? | master | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #28372 | License | MIT | Doc PR | N/A Commits ------- 5ed8b27 Fix expected values in datetime-local test
2 parents 6018797 + 5ed8b27 commit 4879a75

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Symfony/Component/Form/Tests/Extension/Core/Type/DateTimeTypeTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -258,13 +258,13 @@ public function testSubmitDifferentTimezonesDateTimeImmutable()
258258

259259
$outputTime = new \DateTimeImmutable('2010-06-02 03:04:00 Pacific/Tahiti');
260260

261-
$form->submit('2010-06-02T03:04:00-10:00');
261+
$form->submit('2010-06-02T03:04:00');
262262

263263
$outputTime = $outputTime->setTimezone(new \DateTimeZone('America/New_York'));
264264

265265
$this->assertInstanceOf(\DateTimeImmutable::class, $form->getData());
266266
$this->assertEquals($outputTime, $form->getData());
267-
$this->assertEquals('2010-06-02T03:04:00-10:00', $form->getViewData());
267+
$this->assertEquals('2010-06-02T03:04:00', $form->getViewData());
268268
}
269269

270270
public function testSubmitStringSingleText()

0 commit comments

Comments
 (0)