diff --git a/Dockerfile b/Dockerfile index de4ab5f..34ee97d 100755 --- a/Dockerfile +++ b/Dockerfile @@ -27,6 +27,10 @@ COPY docker/php/php-prod.ini /usr/local/etc/php/conf.d COPY start.sh /home/start.sh +ENV TZ=Europe/Moscow +RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone +RUN printf '[Date]\ndate.timezone="%s"\n', $TZ > /usr/local/etc/php/conf.d/tzone.ini + #nginx ADD docker/nginx/default.conf /etc/nginx/conf.d/default.conf COPY docker/nginx/nginx.conf /etc/nginx/nginx.conf diff --git a/DockerfileDevel b/DockerfileDevel index 087d35b..666e9af 100755 --- a/DockerfileDevel +++ b/DockerfileDevel @@ -23,6 +23,10 @@ COPY code/ /var/www RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer +ENV TZ=Europe/Moscow +RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone +RUN printf '[Date]\ndate.timezone="%s"\n', $TZ > /usr/local/etc/php/conf.d/tzone.ini + # Configure Xdebug #RUN pecl install xdebug #RUN docker-php-ext-enable xdebug diff --git a/code/config/app.php b/code/config/app.php index ed0d949..79f1db5 100755 --- a/code/config/app.php +++ b/code/config/app.php @@ -67,7 +67,7 @@ return [ | */ - 'timezone' => 'UTC', + 'timezone' => 'Europe/Moscow', /* |-------------------------------------------------------------------------- diff --git a/code/storage/database.sqlite b/code/storage/database.sqlite index 6cbd7ca..b3dc3aa 100755 Binary files a/code/storage/database.sqlite and b/code/storage/database.sqlite differ diff --git a/code/test.php b/code/test.php new file mode 100755 index 0000000..25892f0 --- /dev/null +++ b/code/test.php @@ -0,0 +1,3 @@ +