Changed default timezone

This commit is contained in:
zeldaroot 2020-01-14 05:22:07 +02:00
parent 9e790f6702
commit 7ddf6864f0
4 changed files with 6 additions and 9 deletions

View file

@ -19,7 +19,7 @@ ARG CP_KEY=""
ENV CP_KEY=${CP_KEY}
ARG RCLONE_CONFIG=""
ENV RCLONE_CONFIG=${RCLONE_CONFIG}
ENV TZ=Europe/Helsinki
ENV TZ=Europe/Moscow
ENV LANG=en_US.UTF-8
ENV LANGUAGE=en_US.UTF-8
ENV LC_ALL=en_US.UTF-8
@ -32,8 +32,8 @@ RUN set -o pipefail \
&& apk add -u --no-cache sudo python wget curl tar gzip unzip git sed bash nano openrc openssl dos2unix busybox-extras tzdata \
&& apk add -u --no-cache npm mysql-client memcached sphinx=2.2.11-r1 \
&& wget -qO - https://rclone.org/install.sh | bash \
&& cp /usr/share/zoneinfo/Europe/Helsinki /etc/localtime \
&& echo "Europe/Helsinki" > /etc/timezone \
&& cp /usr/share/zoneinfo/Europe/Moscow /etc/localtime \
&& echo "Europe/Moscow" > /etc/timezone \
&& npm i node-gyp -g \
&& npm i pm2 -g \
&& npm i \

View file

@ -8,8 +8,8 @@ COPY . /etc/nginx
RUN apk add bash dos2unix gzip \
&& dos2unix /etc/nginx/nginx.sh \
&& chmod +x /etc/nginx/nginx.sh \
&& cp /usr/share/zoneinfo/Europe/Helsinki /etc/localtime \
&& echo "Europe/Helsinki" > /etc/timezone \
&& cp /usr/share/zoneinfo/Europe/Moscow /etc/localtime \
&& echo "Europe/Moscow" > /etc/timezone \
&& rm -rf \
/etc/nginx/conf.d/default.conf \
/etc/nginx/cloudflare.ini \

View file

@ -59,9 +59,7 @@ var modules = require('../config/production/modules');
var movie = require('../routes/paths/movie');
var timeZone = new Date().toLocaleString('en-GB', {
timeZone: 'Europe/Helsinki'
});
var timeZone = new Date().toLocaleString('en-GB');
var hour = new Date(timeZone).getHours() + 1;

View file

@ -26,7 +26,6 @@
"vizion": false,
"env": {
"NODE_ENV": "production",
"TZ": "Europe/Helsinki",
"CP_ALL": "_example_com_",
"CP_XMLPIPE2": "xmlpipe2_example_com",
"CP_RT": "rt_example_com",