AN

Erro No Website

Por Androidserver, 02 de dez. de 2011 em Archived

3
622
02 de dezembro de 2011 às 12:51

Quando eu vo em Characters e procuro por alguém da este erro em cima da tela

 

 

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 '-2.0/DST' instead in C:\xampp\htdocs\characters.php on line 358

 

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 '-2.0/DST' instead in C:\xampp\htdocs\pot\OTS_Account.php on line 396

 

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 '-2.0/DST' instead in C:\xampp\htdocs\pot\OTS_Account.php on line 396

 

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 '-2.0/DST' instead in C:\xampp\htdocs\pot\OTS_Account.php on line 396

 

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 '-2.0/DST' instead in C:\xampp\htdocs\pot\OTS_Account.php on line 396

dreigon67D
04 de dezembro de 2011 às 19:06

tem q colocar o timezone no config.php ou index.php( n lembro bem)

k2lanK
04 de dezembro de 2011 às 20:19

Siga:

 

xampp/php/php.ini

Procure

; Defines the default timezone used by the date functions
; http://php.net/date.timezone
date.timezone =

 

Mude para

; Defines the default timezone used by the date functions
; http://php.net/date.timezone
date.timezone = America/Sao_Paulo

 

Se não funcionar, vá nos arquivos que está com problema e procure por:

<?PHP

adicione logo depois

date_default_timezone_set('America/Sao_Paulo');

Editado Dezembro 4 por k2lan