A
A
Andrey Okhotnikov2020-03-25 18:26:08
linux
Andrey Okhotnikov, 2020-03-25 18:26:08

Setting timezone in nodejs?

There is a server on Linux, the time is set correctly in it. And nodejs is spinning on it - in it the time zone is 3 hours behind. How to make it correct by default in node (either write it manually or make it match with linux)
Tried to write
process.env.TZ = "Europe/Moskow";
it Didn't help

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladimir Korotenko, 2020-03-25
@firedragon

See what's there and how in the output.
Plus, check the locale settings and tz for the user from which the node is launched

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question