roles/php-fpm: Set timezone in php.ini template

Since we're using a variable for the timezone for systemd-timesyncd
anyways, we can also use it for PHP's config.
This commit is contained in:
Alan Orth 2016-08-22 12:56:04 +03:00
parent d3a6e71ab8
commit 0445c3cdee
Signed by: alanorth
GPG Key ID: 0FB860CC9C45B1B9
2 changed files with 6 additions and 2 deletions

View File

@ -880,7 +880,9 @@ cli_server.color = On
[Date] [Date]
; Defines the default timezone used by the date functions ; Defines the default timezone used by the date functions
; http://php.net/date.timezone ; http://php.net/date.timezone
;date.timezone = {% if timezone is defined %}
date.timezone = {{ timezone }}
{% endif %}
; http://php.net/date.default-latitude ; http://php.net/date.default-latitude
;date.default_latitude = 31.7667 ;date.default_latitude = 31.7667

View File

@ -909,7 +909,9 @@ cli_server.color = On
[Date] [Date]
; Defines the default timezone used by the date functions ; Defines the default timezone used by the date functions
; http://php.net/date.timezone ; http://php.net/date.timezone
;date.timezone = {% if timezone is defined %}
date.timezone = {{ timezone }}
{% endif %}
; http://php.net/date.default-latitude ; http://php.net/date.default-latitude
;date.default_latitude = 31.7667 ;date.default_latitude = 31.7667