Javascript Date objects and Daylight Savings Time

前端 未结 1 1489
孤街浪徒
孤街浪徒 2020-12-19 17:44

I\'m seeing some behavior I don\'t understand with Javascript date objects and DST transitions. If I execute the following in Chrome\'s javascript console

v         


        
相关标签:
1条回答
  • 2020-12-19 18:37

    Maybe it's a bug. Have you tried it on more than one browser?

    Otherwise I'd guess that since you're trying to set the hours to a time that doesn't exist, it rejects the change.

    0 讨论(0)
提交回复
热议问题