Delay of minutes when saving PHP record [closed]

1

I have a registration form and in tests , at the end of the registration, it stores the correct time, but when it is made available to the end user, the records are stored with a delay of approximately 7 minutes. p>

That is, I make it available at 7:00 p.m. and when I see in the database there are records from 18:53 up, and the server time is correct (7:00 p.m.).

Xampp with Apache 2.0 and PHP 5.4

No php.ini a date.timezone = America / Recife

Application code:

   private function dataAtual(){
      return date("Y-m-d H:i:s");
   }

Insert

   $query = "INSERT INTO boletos (linguaID,candidatoID, concursoID, nDocumento, dataVenc, 
        dataDocumento, dataProcessamento, aceite, especie, valUnitario, quantidade, especieDoc, contaCedente,ccDigito,agencia) 
        values (".$bolet->getLinguaID().",".$_SESSION['candidatoID'].",".$_SESSION['concursoID'].",'".$bolet->getNDocumento()."'
        ,'".$bolet->getDataVenc()."','".$bolet->dataAtual()."','".$bolet->dataAtual()."',
        '".$bolet->getAceite()."','".$bolet->getEspecie()."',".$bolet->getValUnitario().",".$bolet->getQuantidade().",
        '".$bolet->getEspecieDoc()."','".$empresa->getContaCedente()."','".$empresa->getCCDigito()."','".$empresa->getAgencia()."')";

The date in question is the "dataDocument" .

I could not find anything on the web.

    
asked by anonymous 20.10.2016 / 14:27

0 answers