diff --git a/src/QUI/ERP/Accounting/Invoice/Utils/Invoice.php b/src/QUI/ERP/Accounting/Invoice/Utils/Invoice.php index 9434b4c6eb26d1baeb5f87fa76f788ef367e36cb..cb5a425ecf91e66f6ec1ba3b086883f2249cb416 100644 --- a/src/QUI/ERP/Accounting/Invoice/Utils/Invoice.php +++ b/src/QUI/ERP/Accounting/Invoice/Utils/Invoice.php @@ -864,7 +864,7 @@ public static function getElectronicInvoice( $timeForPayment = strtotime($timeForPayment); if ($timeForPayment) { - $timeForPayment = new DateTime($timeForPayment); + $timeForPayment = new DateTime((int)$timeForPayment); } if (!($timeForPayment instanceof DateTime)) {