Answer the question
In order to leave comments, you need to log in
Why does Date() in node return UTC and not local time?
new Date()
It returns the local time in the browser, and if you run it in a node script, then the time is different with the same code, on the same machine. Why so, where to read about all the nuances?
Answer the question
In order to leave comments, you need to log in
server js works according to the configured server configs - in your case, according to the configs of the node itself.
Well, browser js just works on the client.
how to change is described here:
https://stackoverflow.com/questions/8083410/how-ca...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question