php-docker-boilerplate icon indicating copy to clipboard operation
php-docker-boilerplate copied to clipboard

php.ini date.timezone error

Open vatgia opened this issue 5 years ago • 4 comments

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

Please check it. Thanks

vatgia avatar Jul 01 '20 02:07 vatgia

@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

htuscher avatar Jul 01 '20 06:07 htuscher

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

vatgia avatar Jul 02 '20 02:07 vatgia

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

Have you tried the environment variable I mentioned?

htuscher avatar Jul 02 '20 07:07 htuscher

@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

vatgia avatar Jul 09 '20 04:07 vatgia