javascript - Why is the time displayed when nodejs runs the Date function inaccurate?
淡淡烟草味
淡淡烟草味 2017-06-10 09:48:34
0
2
651
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?

淡淡烟草味
淡淡烟草味

reply all (2)
阿神

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/...

      Latest Downloads
      More>
      Web Effects
      Website Source Code
      Website Materials
      Front End Template
      About us Disclaimer Sitemap
      php.cn:Public welfare online PHP training,Help PHP learners grow quickly!