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 d03cefc

Browse filesBrowse files
committed
Fix expected values in datetime-local test
1 parent 680f319 commit d03cefc
Copy full SHA for d03cefc

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.