Krydos thanks for the help, but this software does not change the status of my project. The problem is in the heliohost timezone, which is Pacific time. To solve, only change the file "php.ini" my account. I do not know if it is possible on the server of you. You have to configure php to my account?? As regards the timezone?? I did another project with the same script in a host in Brazil and the result was expected, because the server uses the following brasileiro timezone in php.ini: date.timezone = "America / Sao_Paulo"