Skip to content

Commit

Permalink
Fix bug deadline in PDF
Browse files Browse the repository at this point in the history
{$deadline|date_format:"%D"|escape:'htmlall':'UTF-8'} return the same day than the $date_add...
Ajusting the date format fix the bug
  • Loading branch information
loremipsum31 authored Feb 21, 2024
1 parent 5e19269 commit 445f6a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion models/HTMLTemplateEverQuotationPdf.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 445f6a4

Please sign in to comment.