2

I tried below script but it didn't work.

{
  "scripts": {
    "start": "TZ='UTC' nest start"
  }
}

[System Information]
OS Version : Linux 5.4
NodeJS Version : v12.18.3
NPM Version : 6.14.6

[Nest CLI]
Nest CLI Version : 7.4.1

[Nest Platform Information]
platform-express version : 7.0.0
passport version : 7.0.0
typeorm version : 7.1.0
common version : 7.0.0
config version : 0.5.0
core version : 7.0.0
jwt version : 7.0.0

Pankaj Salunkhe
  • 235
  • 1
  • 5
  • 8

1 Answers1

8

In a REPL, this is working as expected.

TZ=UTC node
> d = new Date()
> d.toLocaleTimeString()

I would assume you need to set your start command as

  "start": "TZ=UTC nest start"
EQuimper
  • 5,811
  • 8
  • 29
  • 42
Jay McDoniel
  • 57,339
  • 7
  • 135
  • 147