-Z3R0- 0 Denunciar post Postado Abril 21, 2011 Jente Bom dia a todos eu estou com uma duvida por que quando xamo a função "date" ela da o seguinte erro : Strict Standards: date() [function.date]: It is not safe to rely on the system's timezone settings. Please use the date.timezone setting, the TZ environment variable or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Sao_Paulo' for '-3.0/no DST' instead in C:\AppServ\www\site\beta\estudos\class.dados_clientes.php on line 24 eu xamo ela assim $arquivo = $this->nome.date("d-m-Y_H-i-s").".txt"; alguem sabe se esta errado Compartilhar este post Link para o post Compartilhar em outros sites
André Severino 3 Denunciar post Postado Abril 21, 2011 A resposta está no próprio Warning, você tem que definir o 'local', então no começo do código insira o seguinte(presumindo que você esteja aqui no Brasil). :thumbsup: date_default_timezone_set('America/Sao_Paulo'); Compartilhar este post Link para o post Compartilhar em outros sites