Skip to content

Commit 7f5a48b

Browse files
committed
Merge #394 - Fix #133 - Add TZ env var to change PHP date.timezone
Pull-request: #394 Fixes: #133
2 parents 88f6d78 + fa108dc commit 7f5a48b

File tree

7 files changed

+12
-0
lines changed

7 files changed

+12
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
1717
- Add support for ENVs `PMA_UPLOADDIR` and `PMA_SAVEDIR` (#384)
1818
- Fixed a bug with `APACHE_PORT` ENV on container restart (#381)
1919
- Update to PHP 8.1 (#393)
20+
- Add support for ENV `TZ`
2021

2122
## [5.1.4] - 2022-05-11
2223

Dockerfile-alpine.template

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ RUN set -ex; \
4141
ENV MAX_EXECUTION_TIME 600
4242
ENV MEMORY_LIMIT 512M
4343
ENV UPLOAD_LIMIT 2048K
44+
ENV TZ UTC
4445
RUN set -ex; \
4546
\
4647
{ \
@@ -63,6 +64,7 @@ RUN set -ex; \
6364
echo 'memory_limit=${MEMORY_LIMIT}'; \
6465
echo 'post_max_size=${UPLOAD_LIMIT}'; \
6566
echo 'upload_max_filesize=${UPLOAD_LIMIT}'; \
67+
echo 'date.timezone=${TZ}'; \
6668
} > $PHP_INI_DIR/conf.d/phpmyadmin-misc.ini
6769

6870
# Calculate download URL

Dockerfile-debian.template

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ RUN set -ex; \
4343
ENV MAX_EXECUTION_TIME 600
4444
ENV MEMORY_LIMIT 512M
4545
ENV UPLOAD_LIMIT 2048K
46+
ENV TZ UTC
4647
RUN set -ex; \
4748
\
4849
{ \
@@ -65,6 +66,7 @@ RUN set -ex; \
6566
echo 'memory_limit=${MEMORY_LIMIT}'; \
6667
echo 'post_max_size=${UPLOAD_LIMIT}'; \
6768
echo 'upload_max_filesize=${UPLOAD_LIMIT}'; \
69+
echo 'date.timezone=${TZ}'; \
6870
} > $PHP_INI_DIR/conf.d/phpmyadmin-misc.ini
6971

7072
# Calculate download URL

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,7 @@ Set the variable ``PMA_ABSOLUTE_URI`` to the fully-qualified path (``https://pma
165165
* ``MAX_EXECUTION_TIME`` - if set, will override the maximum execution time in seconds (default 600) for phpMyAdmin ([$cfg['ExecTimeLimit']](https://docs.phpmyadmin.net/en/latest/config.html#cfg_ExecTimeLimit)) and PHP [max_execution_time](https://www.php.net/manual/en/info.configuration.php#ini.max-execution-time) (format as `[0-9+]`)
166166
* ``MEMORY_LIMIT`` - if set, will override the memory limit (default 512M) for phpMyAdmin ([$cfg['MemoryLimit']](https://docs.phpmyadmin.net/en/latest/config.html#cfg_MemoryLimit)) and PHP [memory_limit](https://www.php.net/manual/en/ini.core.php#ini.memory-limit) (format as `[0-9+](K,M,G)` where K is for Kilobytes, M for Megabytes, G for Gigabytes and 1K = 1024 bytes)
167167
* ``UPLOAD_LIMIT`` - if set, this option will override the default value for apache and php-fpm (format as `[0-9+](K,M,G)` default value is 2048K, this will change ``upload_max_filesize`` and ``post_max_size`` values)
168+
* ``TZ`` - if defined, this option will change the default PHP `date.timezone` from `UTC`. See [documentation](https://www.php.net/manual/en/timezones.php) for supported values.
168169
* ``HIDE_PHP_VERSION`` - if defined, this option will hide the PHP version (`expose_php = Off`). Set to any value (such as `HIDE_PHP_VERSION=true`).
169170
* ``APACHE_PORT`` - if defined, this option will change the default Apache port from `80` in case you want it to run on a different port like an unprivileged port. Set to any port value (such as `APACHE_PORT=8090`)
170171

apache/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ RUN set -ex; \
4343
ENV MAX_EXECUTION_TIME 600
4444
ENV MEMORY_LIMIT 512M
4545
ENV UPLOAD_LIMIT 2048K
46+
ENV TZ UTC
4647
RUN set -ex; \
4748
\
4849
{ \
@@ -65,6 +66,7 @@ RUN set -ex; \
6566
echo 'memory_limit=${MEMORY_LIMIT}'; \
6667
echo 'post_max_size=${UPLOAD_LIMIT}'; \
6768
echo 'upload_max_filesize=${UPLOAD_LIMIT}'; \
69+
echo 'date.timezone=${TZ}'; \
6870
} > $PHP_INI_DIR/conf.d/phpmyadmin-misc.ini
6971

7072
# Calculate download URL

fpm-alpine/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ RUN set -ex; \
4141
ENV MAX_EXECUTION_TIME 600
4242
ENV MEMORY_LIMIT 512M
4343
ENV UPLOAD_LIMIT 2048K
44+
ENV TZ UTC
4445
RUN set -ex; \
4546
\
4647
{ \
@@ -63,6 +64,7 @@ RUN set -ex; \
6364
echo 'memory_limit=${MEMORY_LIMIT}'; \
6465
echo 'post_max_size=${UPLOAD_LIMIT}'; \
6566
echo 'upload_max_filesize=${UPLOAD_LIMIT}'; \
67+
echo 'date.timezone=${TZ}'; \
6668
} > $PHP_INI_DIR/conf.d/phpmyadmin-misc.ini
6769

6870
# Calculate download URL

fpm/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ RUN set -ex; \
4343
ENV MAX_EXECUTION_TIME 600
4444
ENV MEMORY_LIMIT 512M
4545
ENV UPLOAD_LIMIT 2048K
46+
ENV TZ UTC
4647
RUN set -ex; \
4748
\
4849
{ \
@@ -65,6 +66,7 @@ RUN set -ex; \
6566
echo 'memory_limit=${MEMORY_LIMIT}'; \
6667
echo 'post_max_size=${UPLOAD_LIMIT}'; \
6768
echo 'upload_max_filesize=${UPLOAD_LIMIT}'; \
69+
echo 'date.timezone=${TZ}'; \
6870
} > $PHP_INI_DIR/conf.d/phpmyadmin-misc.ini
6971

7072
# Calculate download URL

0 commit comments

Comments
 (0)