Closed GoogleCodeExporter closed 8 years ago
Thanks for pointing out the bug.
I've fixed the problem in TimePeriod and updated SVN (Build #189).
Example
var start = new Date();
var end = Date.today().add(15).days();
var ts = new TimePeriod(start, end);
ts.getDays(); // 14
Original comment by geoff%co...@gtempaccount.com
on 8 May 2008 at 4:09
Hey,
I have used the #189 code and if the line #245 has been fixed, the #251 still
uses:
while (d1 > d2 && d1.clone().addDays(-d1.getDaysInMonth()) > d2)
Since I have not digged the code, I wonder whether this is right...
The #189 was generating the same error as described by Jeff and his fix also
worked
for the line #251. Now obviously, fixing the code like this is not optimal :P
Original comment by nicolas....@gmail.com
on 30 Apr 2010 at 11:08
Original issue reported on code.google.com by
jeff.pen...@gmail.com
on 7 May 2008 at 5:04