date () incorrect on certain pages

0

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?

    
asked by anonymous 06.07.2018 / 00:16

0 answers