From 445f6a42fd067a9534bccef42c252b6795a513d9 Mon Sep 17 00:00:00 2001 From: loremipsum Date: Wed, 21 Feb 2024 17:04:48 +0100 Subject: [PATCH] Fix bug deadline in PDF {$deadline|date_format:"%D"|escape:'htmlall':'UTF-8'} return the same day than the $date_add... Ajusting the date format fix the bug --- models/HTMLTemplateEverQuotationPdf.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/models/HTMLTemplateEverQuotationPdf.php b/models/HTMLTemplateEverQuotationPdf.php index f3aa6df..246eb83 100644 --- a/models/HTMLTemplateEverQuotationPdf.php +++ b/models/HTMLTemplateEverQuotationPdf.php @@ -113,7 +113,7 @@ public function getHeader() $newDateTimestamp = strtotime($everpsquotation->date_add . " +{$this->duration} days"); // Formater la nouvelle date au format 'd/m/Y' - $deadline = date('d/m/Y', $newDateTimestamp); + $deadline = date('Y-m-d h:m:s', $newDateTimestamp); } else { $deadline = false; }