filipidev Posted January 16, 2012 Share Posted January 16, 2012 Olá! Galera! Estou Com Um problema No php Ja tentei diversas coisas Atualize php, recompilei. Mais nada o erro é o seguinte um Site em php apresenta erro no date() é no mktime, Mais o problema que nao é o script pois na Hospedagem de onde ele veio rodava Normal. o erro é o seguinte Warning: date() [function.date]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting 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 'BRST/-2.0/DST' instead in /home/rang/public_html/home.php on line 11 Warning: mktime() [function.mktime]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting 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 'BRST/-2.0/DST' instead in /home/rang/public_html/scripts/funcoes.php on line 6 Já setei o time do servidor no php.ini para America/Sao_Paulo é nada rs Alguem poderia me ajudar? Agradeço Obrigado Link to comment Share on other sites More sharing options...
Elisei Posted January 16, 2012 Share Posted January 16, 2012 ja tentou pelo whm em server Time? Ou tentou como solicita o erro em scripts/funcoes.php? Link to comment Share on other sites More sharing options...
filipidev Posted January 16, 2012 Author Share Posted January 16, 2012 ja tentou pelo whm em Server Time? Ou tentou como solicita o erro em scripts/funcoes.php? Já tentei Ambos. sem Sucesso. Link to comment Share on other sites More sharing options...
Jarbas - Blaster Web Posted January 16, 2012 Share Posted January 16, 2012 Bom dia Filipi, coloque isso no seu php.ini date_default_timezone_set('America/Sao_Paulo');[/CODE] . A causa desse erro é que o seu código está executando alguma operação com hora porém não existe um um timezone setado. Link to comment Share on other sites More sharing options...
mcliano Posted January 16, 2012 Share Posted January 16, 2012 Use o php.ini com o código que o Jarbas postou que ira funcionar, passei pelo mesmo problema. Link to comment Share on other sites More sharing options...
filipidev Posted January 16, 2012 Author Share Posted January 16, 2012 Olá! Coloquei MAis Não teve Sucesso, mesmo erro. http://184.22.205.243/scripts/php.php Aqui está as configuracoes php. está normal Não sei se tem Algo incorreto Link to comment Share on other sites More sharing options...
Recommended Posts