diff --git a/roles/php-fpm/templates/php.ini.j2 b/roles/php-fpm/templates/php.ini.j2 index 5496a15..63b787c 100644 --- a/roles/php-fpm/templates/php.ini.j2 +++ b/roles/php-fpm/templates/php.ini.j2 @@ -880,7 +880,9 @@ cli_server.color = On [Date] ; Defines the default timezone used by the date functions ; http://php.net/date.timezone -;date.timezone = +{% if timezone is defined %} +date.timezone = {{ timezone }} +{% endif %} ; http://php.net/date.default-latitude ;date.default_latitude = 31.7667 diff --git a/roles/php-fpm/templates/php7.0-php.ini.j2 b/roles/php-fpm/templates/php7.0-php.ini.j2 index bd8e309..e713558 100644 --- a/roles/php-fpm/templates/php7.0-php.ini.j2 +++ b/roles/php-fpm/templates/php7.0-php.ini.j2 @@ -909,7 +909,9 @@ cli_server.color = On [Date] ; Defines the default timezone used by the date functions ; http://php.net/date.timezone -;date.timezone = +{% if timezone is defined %} +date.timezone = {{ timezone }} +{% endif %} ; http://php.net/date.default-latitude ;date.default_latitude = 31.7667