webdevops / php-docker-boilerplate

:stew: PHP Docker Boilerplate for Symfony, Wordpress, Joomla or any other PHP Project (NGINX, Apache HTTPd, PHP-FPM, MySQL, Solr, Elasticsearch, Redis, FTP)
https://webdevops.io/projects/php-docker-boilerplate/
MIT License
561 stars 185 forks source link

php.ini date.timezone error #88

Open vatgia opened 4 years ago

vatgia commented 4 years ago

I fixed the setting date.timezone = Asia/Ho_Chi_Minh. But phpinfo() show date.timezone = Europe/Berlin.

Please check it. Thanks

htuscher commented 4 years ago

@vatgia How did you change the timezone? There's an environment variable for that PHP_DATE_TIMEZONE. See https://dockerfile.readthedocs.io/en/latest/content/DockerImages/dockerfiles/php-nginx.html#php-ini-variables

vatgia commented 4 years ago

@hhoechtl I change it in file /etc/php/development.ini

htuscher commented 4 years ago

@vatgia That is not an ini file that is in use. Which image are you using?

Have you tried the environment variable I mentioned?

vatgia commented 4 years ago

@hhoechtl

@vatgia That is not an ini file that is in use. Which image are you using?

Have you tried the environment variable I mentioned?

image

I config it in file etc/environment.yml