x = new XDate('Sun Jun 29 2014 00:00:00 GMT+1000 (EST)') y = new XDate("Mon Jun 30 2014 00:00:00 GMT+1100 (EST)") x.diffDays(y) result is 0.9583333333333334 should be 1 maybe ? basically if the time changes tomorrow you get the wrong value