Skip to content

Commit

Permalink
Merge pull request #13 from icefoganalytics/issue-9/standardize-timez…
Browse files Browse the repository at this point in the history
…one-handling-to-utc

Standardize Timezone Handling To UTC
  • Loading branch information
klondikemarlen authored Jan 15, 2024
2 parents 01d0770 + fb1cd66 commit 43cac9f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,11 @@ ARG GIT_COMMIT_HASH
ENV RELEASE_TAG=${RELEASE_TAG}
ENV GIT_COMMIT_HASH=${GIT_COMMIT_HASH}

# Persists TZ=UTC effect after container build and into container run
# Ensures dates/times are consistently formated as UTC
# Conversion to local time should happen in the UI
ENV TZ=UTC

ENV NODE_ENV=production
USER node

Expand Down
1 change: 1 addition & 0 deletions docker-compose.development.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
version: "3"

x-default-environment: &default-environment
TZ: "UTC"
NODE_ENV: development
DB_HOST: db
DB_USER: sa
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ services:
image: mcr.microsoft.com/mssql/server:2022-latest
user: root
environment:
TZ: "UTC"
# default user is `sa`
MSSQL_SA_PASSWORD: "${DB_PASS}"
TZ: "America/Whitehorse"
ACCEPT_EULA: "Y"
ports:
- "1433:1433"
Expand Down

0 comments on commit 43cac9f

Please sign in to comment.