Unable to change timezone
I cannot change the timezone inside the docker. the TZ variable is ignored and the typical files for setting the timezone is also ignored /etc/timezone and /etc/localtime
Its set to UTC as per default, but as i live en the Europe/Copenhagen timezone, its two hours offset.
How do i change that?
See https://github.com/gliderlabs/docker-alpine/issues/136, there is currently no direct support for changing timezone in our container.
Okay...
I didn't want to say it doesn't make sense to add it though :-).
why not this?
ENV MAX_EXECUTION_TIME 600
ENV MEMORY_LIMIT 512M
ENV UPLOAD_LIMIT 2048K
ENV TZ UTC #<===
RUN set -ex; \
\
{ \
echo 'opcache.memory_consumption=128'; \
echo 'opcache.interned_strings_buffer=8'; \
echo 'opcache.max_accelerated_files=4000'; \
echo 'opcache.revalidate_freq=2'; \
echo 'opcache.fast_shutdown=1'; \
} > $PHP_INI_DIR/conf.d/opcache-recommended.ini; \
\
{ \
echo 'session.cookie_httponly=1'; \
echo 'session.use_strict_mode=1'; \
} > $PHP_INI_DIR/conf.d/session-strict.ini; \
\
{ \
echo 'allow_url_fopen=Off'; \
echo 'max_execution_time=${MAX_EXECUTION_TIME}'; \
echo 'max_input_vars=10000'; \
echo 'memory_limit=${MEMORY_LIMIT}'; \
echo 'post_max_size=${UPLOAD_LIMIT}'; \
echo 'upload_max_filesize=${UPLOAD_LIMIT}'; \
echo 'date.timezone=${TZ}'; \ #<===
} > $PHP_INI_DIR/conf.d/phpmyadmin-misc.ini
See #394