Skip to content

Commit

Permalink
Fixed default Timezone to UTC in dockerfile and package.json (#2506)
Browse files Browse the repository at this point in the history
  • Loading branch information
jiqiang90 authored Jul 29, 2024
1 parent ab4c24f commit 1992a24
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
3 changes: 3 additions & 0 deletions packages/node/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 2 additions & 0 deletions packages/node/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down
6 changes: 3 additions & 3 deletions packages/node/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 1992a24

Please sign in to comment.