From 1a90bb657aefc982b1ccc4055acf92f12c83c68a Mon Sep 17 00:00:00 2001 From: Julian Rother <julian@cccv.de> Date: Wed, 3 Aug 2022 22:33:40 +0200 Subject: [PATCH] Add date_timezone php.ini option --- defaults/main.yml | 1 + templates/php-fpm/php.ini.j2 | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/defaults/main.yml b/defaults/main.yml index 86ffecf..e9ce644 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -76,3 +76,4 @@ phpinidefault: post_max_size: 64M upload_max_filesize: 64M memory_limit: 128M + date_timezone: UTC diff --git a/templates/php-fpm/php.ini.j2 b/templates/php-fpm/php.ini.j2 index 7a2c89c..9430046 100644 --- a/templates/php-fpm/php.ini.j2 +++ b/templates/php-fpm/php.ini.j2 @@ -925,7 +925,7 @@ cli_server.color = On [Date] ; Defines the default timezone used by the date functions ; http://php.net/date.timezone -date.timezone = "UTC" +date.timezone = "{{ phpini.date_timezone }}" ; http://php.net/date.default-latitude ;date.default_latitude = 31.7667 -- GitLab