mootools/mootools-more — Issue #1072: Date.diff not working correctly
Author: totalvoidness
Created: 2011-11-18 12:47:29+00:00
State: open

There seems to be a rounding issue with Date.diff in Mootools More, which can be reproduced easily like this:

```javascript
var a = new Date(2010, 05, 01);
var b = new Date(2010, 04, 01);
var x = new Date(2012, 11, 01);

alert(a.diff(x, 'month')); //30
alert(b.diff(x, 'month')); //32 (should be 31)
```