8000 [Form] Fix expected values in datetime-local test by mcfedr · Pull Request #28504 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

[Form] Fix expected values in datetime-local test #28504

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 18, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Fix expected values in datetime-local test
  • Loading branch information
mcfedr authored and nicolas-grekas committed Sep 18, 2018
commit 5ed8b2710fe8f362cd814d207e55950ad591bd6b
7125
Original file line number Diff line number Diff line change
Expand Up @@ -258,13 +258,13 @@ public function testSubmitDifferentTimezonesDateTimeImmutable()

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

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

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

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

public function testSubmitStringSingleText()
Expand Down
0