Why is Safari confused about Date.getDay() for DST start in Sydney, Aus time zone?

后端 未结 1 1190
庸人自扰
庸人自扰 2021-01-04 02:26

Safari on OSX believes that October 6th, 2013 is a Saturday in Australia. It\'s not, it\'s actually a Sunday.

To replicate this issue, just set your time zone to Sy

相关标签:
1条回答
  • 2021-01-04 02:30

    This really should be considered a bug - Technically speaking DST in Sydney starts on 2013/10/06 at 2AM, so 2AM then becomes 3AM (http://www.timeanddate.com/worldclock/clockchange.html?n=240). It appears Safari in this case is thinking you mean 2013/10/06 at midnight - and is then going back 1 hour to 11PM the previous day. This doesn't even make sense because at 2AM the clock is supposed to go forward an hour.

    I would recommend filing a bug report for this - because the output is so obviously wrong

    https://developer.apple.com/bugreporter/

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