MeuMySQL Blog is now at http://blog.mdnsolutions.com/.

Monday, September 24, 2012

Instalando o Composer: Erro timezone


Bem, instalando o Composer em meu computador me deparei com a seguinte mensagem:


Some settings on your machine may cause stability issues with Composer.
If you encounter issues, try to change the following:

The date.timezone setting should be provided.
Add the following to the end of your `php.ini`:
    ; UTC here is an example, use your own timezone, see http://www.php.net/manual/en/timezones.php
    date.timezone = UTC

Downloading...

Composer successfully installed to: /home/user/composer.phar
Use it: php composer.phar


Para resolver acesse o php.ini do cli como abaixo:

shell> nano /etc/php5/cli/php.ini 

E procure a linha date.timezone adicionando algum favor:

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

Pronto, problema resolvido. =)

No comments:

Post a Comment