From a53df87a048b943ff7380765b300e2b002e61de4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Malot?= Date: Tue, 21 Apr 2020 09:28:21 +0200 Subject: [PATCH] Fix timezone on unit test --- src/Smalot/PdfParser/Tests/Units/Element/ElementDate.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Smalot/PdfParser/Tests/Units/Element/ElementDate.php b/src/Smalot/PdfParser/Tests/Units/Element/ElementDate.php index 70ca18f0..efd55795 100644 --- a/src/Smalot/PdfParser/Tests/Units/Element/ElementDate.php +++ b/src/Smalot/PdfParser/Tests/Units/Element/ElementDate.php @@ -102,7 +102,7 @@ public function testParse() $element = \Smalot\PdfParser\Element\ElementDate::parse(" \n (D:20130901235555) ", null, $offset); $element->setFormat('c'); $this->assert->object($element->getContent())->isInstanceOf('\DateTime'); - $this->assert->boolean($element->equals(new \DateTime('2013-09-01T23:55:55')))->isEqualTo(true); + $this->assert->boolean($element->equals(new \DateTime('2013-09-01T23:55:55+00:00')))->isEqualTo(true); $this->assert->integer($offset)->isEqualTo(21); $offset = 0; $element = \Smalot\PdfParser\Element\ElementDate::parse("(D:20131206091846Z00'00')", null, $offset);