Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 4879a75

Browse filesBrowse 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
Copy full SHA for 4879a75

File tree

Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed

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

Copy file name to clipboardExpand all lines: src/Symfony/Component/Form/Tests/Extension/Core/Type/DateTimeTypeTest.php
+2-2Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.