Timezone no php

De MochilaWiki
Ir para navegaçãoIr para pesquisar

http://www.dicas-l.com.br/dicas-l/20071019.php


date.timezone: NOT OK (cannot be empty and needs to be set)

php_value date.timezone America/Sao_Paulo SetEnv TZ America/Sao_Paulo

http://pecl.php.net/package/timezonedb/ http://www.itechtalk.com/thread469.html http://br.php.net/timezones

echo 'date.timezone = "America/Sao_paulo"' > /etc/php5/conf.d/date.ini

You should add "extension=timezonedb.so" to php.ini

The following settings are optional and recommended: date.timezone: NOT OK(Could be set)