We were not handling differences that were exactly (to the millisecond) an
integer number of months. git-svn-id: https://samskivert.googlecode.com/svn/trunk@1796 6335cc39-0255-0410-8fd6-9bcaacd3b74c
This commit is contained in:
@@ -83,7 +83,7 @@ public class CalendarUtil
|
|||||||
do {
|
do {
|
||||||
end.add(Calendar.MONTH, -1);
|
end.add(Calendar.MONTH, -1);
|
||||||
months++;
|
months++;
|
||||||
} while (start.before(end));
|
} while (!end.after(start));
|
||||||
|
|
||||||
return months;
|
return months;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user