diff --git a/packages/node/CHANGELOG.md b/packages/node/CHANGELOG.md index 396f2245e2..81bb36cd47 100644 --- a/packages/node/CHANGELOG.md +++ b/packages/node/CHANGELOG.md @@ -6,6 +6,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +### Fixed +- Fixed default Timezone to UTC in dockerfile and package.json (#2505) + ## [5.0.0] - 2024-07-25 ### Changed - Breaking change: Update with `@subql/node-core`, require indexing environment timezone set to UTC (#2495) diff --git a/packages/node/Dockerfile b/packages/node/Dockerfile index 6397f8b31c..6dd91c3d51 100644 --- a/packages/node/Dockerfile +++ b/packages/node/Dockerfile @@ -36,6 +36,8 @@ RUN mkdir -p .monitor && \ # Make the user not ROOT USER 1000 +# Fix timezone to UTC +ENV TZ ='UTC' # Set Entry point and command ENTRYPOINT ["/sbin/tini", "--", "/bin/run"] diff --git a/packages/node/package.json b/packages/node/package.json index c08f68f7c0..142f66ee84 100644 --- a/packages/node/package.json +++ b/packages/node/package.json @@ -8,9 +8,9 @@ "prebuild": "rimraf dist", "build": "rm -rf dist && tsc -b", "format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\"", - "start": "nest start", - "start:dev": "nodemon", - "start:prod": "node dist/main", + "start": "TZ=utc nest start", + "start:dev": "TZ=utc nodemon", + "start:prod": "TZ=utc node dist/main", "changelog:release": "echo \"Updating changelog $npm_package_version\" && npx chan release $npm_package_version --git-url \"https://github.com/subquery/subql\" --release-prefix=\"node/\"" }, "homepage": "https://github.com/subquery/subql",