var d = new Date(); console.log(d);
The output result is
2017-06-09T12:55:35.514Z[Finished in 0.6s]
The time output by the browser is 20:57:47, which is the correct system time. Why is this?
UTC time output by node, Local time output by browser
Found it, the UTC time output by node is Beijing time. UTC time and Beijing time check:http://zh.thetimenow.com/utc/...
UTC time output by node,
Local time output by browser
Found it, the UTC time output by node is Beijing time.
UTC time and Beijing time check:
http://zh.thetimenow.com/utc/...