MS

[Dúvida] Gesior Acc - Erros

Por Msfox, 05 de set. de 2010 em Archived

2
1.6k
MsfoxM
05 de setembro de 2010 às 19:48

Primeiramente, o site está instalado 100% corretamente e tals.

Daí depois que instalo e tudo, aparece uns erros acima do banner,tipo:

 

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 '-3.0/no 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 '-3.0/no 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 '-3.0/no 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 '-3.0/no 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 '-3.0/no DST' instead in C:\xampp\htdocs\accountmanagement.php on line 52

 

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 '-3.0/no DST' instead in C:\xampp\htdocs\accountmanagement.php on line 52

 

-Se puderem ajudar, serei muito grato a vocês, pois quando comecei a mecher com OT nao sabia nada, consegui chegar até aqui e acho um grande progresso, e nao e por isso que vou desistir, conto com a ajuda de vocês sz

Editado Setembro 5 por Msfox

netflatN
05 de setembro de 2010 às 22:25

xampp/php/php.ini procure por isso:

 

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

 

Mude para isso:

 

; 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

 

Depois disso adicione:

 

date_default_timezone_set('America/Sao_Paulo');