Symfony – Set the “date.timezone” setting in php.ini


I have set date.timezone in php.ini also in appKernal.
Also php app/check.php giving following message.

(Your system is ready to run Symfony2 projects)

But when I access web/config.php, it is giving following result:

Major problems have been detected and must be fixed before continuing:
Set the date.timezone setting in php.ini* (like Europe/Paris).

Best Solution

If you're a Linux user do these in both files. I had the same issue before and sorted with:

sudo nano /etc/php5/apache2/php.ini
sudo nano /etc/php5/cli/php.ini

With something like below:

; Defines the default timezone used by the date functions
date.timezone = Europe/London

EDIT: Like pointed out comment below there is FPM too so:

sudo nano /etc/php5/fpm/php.ini
Related Question