Skip to content

Commit

Permalink
Merge pull request #755 from joaoroyosilva/patch-1
Browse files Browse the repository at this point in the history
Correção na chamada do date()
  • Loading branch information
robmachado authored Mar 10, 2020
2 parents 444b402 + 46e126b commit e6245e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Factories/ContingencyNFe.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public static function adjust($xml, Contingency $contingency)
$motivo = trim(Strings::replaceUnacceptableCharacters($contingency->motive));

$tz = TimeZoneByUF::get(UFList::getUFByCode($cUF));
$dt = new \DateTime(date(), new \DateTimeZone($tz));
$dt = new \DateTime(date("Y-m-d H:i:sP"), new \DateTimeZone($tz));

$dt->setTimestamp($contingency->timestamp);
$ide->getElementsByTagName('tpEmis')
Expand Down

0 comments on commit e6245e8

Please sign in to comment.