Skip to content

Commit

Permalink
Merge pull request #155 from flowforge/timezone-pull-through
Browse files Browse the repository at this point in the history
Use local TZ env var else use timeZone from settings
  • Loading branch information
Steve-Mcl authored Aug 1, 2023
2 parents dbef490 + 7e1b240 commit 31edc55
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/launcher.js
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,10 @@ class Launcher {
Object.assign(env, this.settings?.env)
}

// Use local timezone if set, else use one from snapshot settings
// this will be ignored on Windows as it does not use the TZ env var
env.TZ = process.env.TZ ? process.env.TZ : this.settings?.settings?.timeZone

info('Starting Node-RED')
const appEnv = env
const processArgs = [
Expand Down

0 comments on commit 31edc55

Please sign in to comment.