You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
a = new Date('Apr 20 2014 15:43:48')
Sun Apr 20 2014 15:43:48 GMT+1000 (EST)
b = new Date()
Mon Jan 20 2014 15:44:26 GMT+1100 (EST)
x = new XDate(a)
[Sun Apr 20 2014 15:43:48 GMT+1000 (EST)]
y = new XDate(b)
[Mon Jan 20 2014 15:44:26 GMT+1100 (EST)]
x.diffDays(y)
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
The text was updated successfully, but these errors were encountered: