var firstDate=moment('Sat Jul 30 2016 00:00:00 GMT+0530 (India Standard Time)');
var secondDate=moment('Fri Jul 29 2016 10:56:39 GMT+0530 (India Standard Time)');
console.log(firstDate.diff(secondDate,'days'));
预期产出:1
实际输出:-0
为什么会发生这种情况?
var firstDate=moment('Sat Jul 30 2016 00:00:00 GMT+0530 (India Standard Time)');
var secondDate=moment('Fri Jul 29 2016 10:56:39 GMT+0530 (India Standard Time)');
console.log(firstDate.diff(secondDate,'days'));
预期产出:1
实际输出:-0
为什么会发生这种情况?