考虑使用最新的MooTools Core & More 1.5(在 jsFiddle 中查看)的这个片段:
console.log(new Date().parse('2014-09-20 00:00:00'));
当我运行这段代码时,我通常会得到一些类似的东西
Sat Sep 20 2014 00:00:00 GMT+0200 (Central Europe Daylight Time)
但是,当我使用 Chrome (38.0.2125.104 m) 或 PyQt 4 WebKit 窗口并使用俄罗斯时区(Windows 中任何RTZ
名称中包含的)时,日期是未来 1 个月:
Mon Oct 20 2014 00:00:00 GMT+0300 (Eastern Europe Daylight Time)
这显然不会发生在 Firefox 或 Internet Explorer 或任何非俄罗斯时区。
有人知道为什么吗?