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:
parent
d3a6e71ab8
commit
0445c3cdee
@ -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
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user