1, which standard time is the default in js?
according to the Date object defined on MDN, the time of js is based on the UTC time of January 1, 1970. Why is the GMT time printed through the console?
then someone said: it is generally believed that GMT and UTC are basically the same, the same as the local time in London, England. The essence of UTC emphasizes a more accurate world time standard than GMT. It"s actually a more accurate GMT, so why didn"t js change new Date () to UTC time? And there are many built-in UTC-related conversion methods.
2, confusion with local time (Beijing time CST)
what we use in real life is Beijing time, that is, CST time, which is 8 hours different from UTC/GMT, so what is the current time coming out through new, and does it include the 8-hour jet lag?
Mon Sep 10 2018 11:22:55 GMT+0800 (China Standard time)