Good evening everyone, I'm developing a project in which I generate batch accounts depending on the number of months that the user selects being a maximum of 12 months, ok the CRUD of these accounts, is already working perfectly, I created a for account how many months is the account to be generated and adds +1 month to the due date, the first expiration is legal, but the next dates appear truncated it seems to follow the excerpt of the batch generate code and the display of the records on the screen
CODE SCREEN
public function gerarLote($meses){
$conexao = new Conexao();
$vencer = new DateTime($this->getVenc());
for ($i=0; $i < $meses; $i++) {
$this->insert();
$vencer->modify('+1 month');
$this->setVenc($vencer->format("d/m/Y"));
}
return true;
}
Display of records on the screen with reference to "JIU MESSAGE"
Thanks in advance for any help