Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 1.1-rc-1
-
Fix Version/s: 1.1-rc-2
-
Component/s: None
-
Labels:None
-
Environment:Windows XP. java version "1.5.0_08". Ant 1.7
-
Testcase included:yes
-
Number of attachments :
Description
Subtracting 2.minutes from 12:02:00 AM results in 23:01:00 of the previous day... yet subtracting 120.seconds correctly results in 12:00:00.
Also, subtractiong 2.hours from 2:00:00 AM results in the previous day... yet subtracting 7200.seconds correctly results in 12:00:00
Here is the code of two test cases that show the error. The commented out lines should be passing.
void testDurationArithmeticOnMinutes() {
use(TimeCategory)
}
void testDurationArithmeticOnHours() {
use(TimeCategory)
}
Should be fixed in HEAD - thanks for spotting this.