Skip to content

Commit 0a31475

Browse files
committed
Add PHP date.timezone env var
1 parent cf8b789 commit 0a31475

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

template/Dockerfile.blade.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
@unless ($prod)
88
ENABLE_XDEBUG=false \
99
@endunless
10+
PHP_DATE_TIMEZONE=UTC \
1011
PHP_MEMORY_LIMIT=256M \
1112
PHP_MAX_INPUT_VARS=1000 \
1213
PHP_UPLOAD_MAX_FILESIZE=25M \

template/kool-ini.blade.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@
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
{{-- OPCACHE --}}
2630
@if ($prod)
2731
[opcache]

0 commit comments

Comments
 (0)