Olá Galera…
To precisando de uma ajuda!!!
Tenho um sistema que captura a data e hora atual, conforme script abaixo:
setlocale(LC_ALL, ‘portuguese’, ‘pt_BR’, ‘pt_br’, ‘ptb_BRA’);
$data = strtotime(date(“Y”));
$data_ext = strftime("%d de %B de %Y",$data);
No windows ta perfeito rodando certinho, mas na hora em que publico o sistema, que é num servidor Linux (Debian) apresenta esses erro:
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 ‘BRT/-3.0/no DST’ instead in /var/www/helder/data.php on line 3
Warning: strtotime() [function.strtotime]: 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 ‘BRT/-3.0/no DST’ instead in /var/www/helder/data.php on line 3
Warning: strftime() [function.strftime]: 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 ‘BRT/-3.0/no DST’ instead in /var/www/helder/data.php on line 4
04 de June de 2010
Alguém poderia me dar uma ajuda com isso?
Att
Helder