Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed default Timezone to UTC in dockerfile and package.json #2506

Merged
merged 1 commit into from
Jul 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading