Where does JavaScript get a new Date() from

后端 未结 4 555
生来不讨喜
生来不讨喜 2021-01-11 16:37

Where does JavaScript get a new Date() from?

Is it based on the client\'s local computers time settings or something else?

I can\'t find anywhere only where

4条回答
  •  生来不讨喜
    2021-01-11 17:25

    Yes, it's based on the local time of the device where the call is being evaluated, like pretty much any other language.

提交回复
热议问题