Skip to content

Commit d0b9f9c

Browse files
authored
Merge pull request #22 from indiegenus/php-ini-timezone
Add PHP date.timezone Environment Variable
2 parents cf8b789 + 9223ff7 commit d0b9f9c

23 files changed

Lines changed: 56 additions & 0 deletions

7.1-prod/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ ENV ASUSER= \
44
UID= \
55
COMPOSER_ALLOW_SUPERUSER=1 \
66
COMPOSER_MEMORY_LIMIT=-1 \
7+
PHP_DATE_TIMEZONE=UTC \
78
PHP_MEMORY_LIMIT=256M \
89
PHP_MAX_INPUT_VARS=1000 \
910
PHP_UPLOAD_MAX_FILESIZE=25M \

7.1-prod/kool.ini

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@ post_max_size = {{ .Env.PHP_POST_MAX_SIZE }}
2222
; Note: This directive is hardcoded to 0 for the CLI SAPI
2323
max_execution_time = {{ .Env.PHP_MAX_EXECUTION_TIME }}
2424

25+
; Default timezone used by all date/time functions.
26+
; https://www.php.net/manual/en/datetime.configuration.php#ini.date.timezone
27+
date.timezone = {{ .Env.PHP_DATE_TIMEZONE }}
28+
2529

2630
[opcache]
2731

7.1/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ ENV ASUSER= \
55
COMPOSER_ALLOW_SUPERUSER=1 \
66
COMPOSER_MEMORY_LIMIT=-1 \
77
ENABLE_XDEBUG=false \
8+
PHP_DATE_TIMEZONE=UTC \
89
PHP_MEMORY_LIMIT=256M \
910
PHP_MAX_INPUT_VARS=1000 \
1011
PHP_UPLOAD_MAX_FILESIZE=25M \

7.1/kool.ini

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,8 @@ post_max_size = {{ .Env.PHP_POST_MAX_SIZE }}
2222
; Note: This directive is hardcoded to 0 for the CLI SAPI
2323
max_execution_time = {{ .Env.PHP_MAX_EXECUTION_TIME }}
2424

25+
; Default timezone used by all date/time functions.
26+
; https://www.php.net/manual/en/datetime.configuration.php#ini.date.timezone
27+
date.timezone = {{ .Env.PHP_DATE_TIMEZONE }}
28+
2529

7.2-prod/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ ENV ASUSER= \
44
UID= \
55
COMPOSER_ALLOW_SUPERUSER=1 \
66
COMPOSER_MEMORY_LIMIT=-1 \
7+
PHP_DATE_TIMEZONE=UTC \
78
PHP_MEMORY_LIMIT=256M \
89
PHP_MAX_INPUT_VARS=1000 \
910
PHP_UPLOAD_MAX_FILESIZE=25M \

7.2-prod/kool.ini

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@ post_max_size = {{ .Env.PHP_POST_MAX_SIZE }}
2222
; Note: This directive is hardcoded to 0 for the CLI SAPI
2323
max_execution_time = {{ .Env.PHP_MAX_EXECUTION_TIME }}
2424

25+
; Default timezone used by all date/time functions.
26+
; https://www.php.net/manual/en/datetime.configuration.php#ini.date.timezone
27+
date.timezone = {{ .Env.PHP_DATE_TIMEZONE }}
28+
2529

2630
[opcache]
2731

7.2/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ ENV ASUSER= \
55
COMPOSER_ALLOW_SUPERUSER=1 \
66
COMPOSER_MEMORY_LIMIT=-1 \
77
ENABLE_XDEBUG=false \
8+
PHP_DATE_TIMEZONE=UTC \
89
PHP_MEMORY_LIMIT=256M \
910
PHP_MAX_INPUT_VARS=1000 \
1011
PHP_UPLOAD_MAX_FILESIZE=25M \

7.2/kool.ini

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,8 @@ post_max_size = {{ .Env.PHP_POST_MAX_SIZE }}
2222
; Note: This directive is hardcoded to 0 for the CLI SAPI
2323
max_execution_time = {{ .Env.PHP_MAX_EXECUTION_TIME }}
2424

25+
; Default timezone used by all date/time functions.
26+
; https://www.php.net/manual/en/datetime.configuration.php#ini.date.timezone
27+
date.timezone = {{ .Env.PHP_DATE_TIMEZONE }}
28+
2529

7.3-prod/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ ENV ASUSER= \
44
UID= \
55
COMPOSER_ALLOW_SUPERUSER=1 \
66
COMPOSER_MEMORY_LIMIT=-1 \
7+
PHP_DATE_TIMEZONE=UTC \
78
PHP_MEMORY_LIMIT=256M \
89
PHP_MAX_INPUT_VARS=1000 \
910
PHP_UPLOAD_MAX_FILESIZE=25M \

7.3-prod/kool.ini

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@ post_max_size = {{ .Env.PHP_POST_MAX_SIZE }}
2222
; Note: This directive is hardcoded to 0 for the CLI SAPI
2323
max_execution_time = {{ .Env.PHP_MAX_EXECUTION_TIME }}
2424

25+
; Default timezone used by all date/time functions.
26+
; https://www.php.net/manual/en/datetime.configuration.php#ini.date.timezone
27+
date.timezone = {{ .Env.PHP_DATE_TIMEZONE }}
28+
2529

2630
[opcache]
2731

0 commit comments

Comments
 (0)