I created a function that returns the current date:
public function dataAtual() {
$data = date('d/m/Y');
return $data;
}
I call it in head.html. But only in the home page the date is correct, in the others, the day is added in +1. Does anyone know what might be happening?