Skip to content

Commit

Permalink
Fix timezone on unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
Sébastien Malot committed Apr 21, 2020
1 parent f841bc4 commit a53df87
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Smalot/PdfParser/Tests/Units/Element/ElementDate.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit a53df87

Please sign in to comment.