From 5ed8b2710fe8f362cd814d207e55950ad591bd6b Mon Sep 17 00:00:00 2001 From: Fred Cox Date: Tue, 18 Sep 2018 20:58:23 +0300 Subject: [PATCH] Fix expected values in datetime-local test --- .../Form/Tests/Extension/Core/Type/DateTimeTypeTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Symfony/Component/Form/Tests/Extension/Core/Type/DateTimeTypeTest.php b/src/Symfony/Component/Form/Tests/Extension/Core/Type/DateTimeTypeTest.php index 3bef03b7e1..a45b183142 100644 --- a/src/Symfony/Component/Form/Tests/Extension/Core/Type/DateTimeTypeTest.php +++ b/src/Symfony/Component/Form/Tests/Extension/Core/Type/DateTimeTypeTest.php @@ -258,13 +258,13 @@ class DateTimeTypeTest extends BaseTypeTest $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()