From d8d0261681ec3ea105d76ddeaaed1f589df323ec Mon Sep 17 00:00:00 2001 From: Jaanus Sellin Date: Wed, 3 May 2023 10:25:56 +0300 Subject: [PATCH] feat: set timezone to utc (#3666) --- Dockerfile | 2 ++ package.json | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 021cb17d3f..d20312b7be 100644 --- a/Dockerfile +++ b/Dockerfile @@ -28,6 +28,8 @@ FROM node:$NODE_VERSION ENV NODE_ENV production +ENV TZ UTC + WORKDIR /unleash COPY --from=builder /unleash/docker /unleash diff --git a/package.json b/package.json index 24fa9b6584..5a52cc6023 100644 --- a/package.json +++ b/package.json @@ -30,9 +30,9 @@ "license": "Apache-2.0", "main": "./dist/lib/server-impl.js", "scripts": { - "start": "node ./dist/server.js", + "start": "TZ=UTC node ./dist/server.js", "prestart:dev": "yarn run clean", - "start:dev": "NODE_ENV=development tsc-watch --strictNullChecks false --onSuccess \"node dist/server-dev.js\"", + "start:dev": "TZ=UTC NODE_ENV=development tsc-watch --strictNullChecks false --onSuccess \"node dist/server-dev.js\"", "copy-templates": "copyfiles -u 1 src/mailtemplates/**/*.mustache dist/", "db-migrate": "db-migrate --migrations-dir ./src/migrations", "lint": "eslint ./src",