-
Bug
-
Resolution: Done
-
Major
-
jBPM 3.2.3
-
None
-
java.version 1.5.0_13
java.vm.version 1.5.0_13-b05
os.name Windows XP
os.version 5.1Manifest-Version: 1.0
Ant-Version: Apache Ant 1.7.0
Created-By: 1.7.0-b21 (Sun Microsystems Inc.)
Implementation-Title: jBPM Core Library
Implementation-Version: 3.2.3 (date:18-Jun-2008 00:51)
Implementation-URL: http://www.jboss.org/
Implementation-Vendor: JBoss Inc.
Implementation-Vendor-Id: http://www.jboss.org/java.version 1.5.0_13 java.vm.version 1.5.0_13-b05 os.name Windows XP os.version 5.1 Manifest-Version: 1.0 Ant-Version: Apache Ant 1.7.0 Created-By: 1.7.0-b21 (Sun Microsystems Inc.) Implementation-Title: jBPM Core Library Implementation-Version: 3.2.3 (date:18-Jun-2008 00:51) Implementation-URL: http://www.jboss.org/ Implementation-Vendor: JBoss Inc. Implementation-Vendor-Id: http://www.jboss.org/
When subtracting business time amounts from a date, the result is after the date and not - as one would expect - before this date.
Examples:
Sat Nov 01 00:00:00 CET 2008 + 2 business days -> Tue Nov 04 17:00:00 CET 2008 - OK
Sat Nov 01 00:00:00 CET 2008 - 2 business days -> Sun Nov 02 18:00:00 CET 2008 - unexpected
Sat Nov 01 00:00:00 CET 2008 + 2 business hours -> Mon Nov 03 11:00:00 CET 2008 - OK
Sat Nov 01 00:00:00 CET 2008 -2 business hours -> Mon Nov 03 07:00:00 CET 2008 - unexpected
Data was created by use of small test program:
Date date=new SimpleDateFormat("dd.MM.yyyy").parse("01.11.2008");
String[] durStrs=
;
BusinessCalendar calendar= new BusinessCalendar();
for (String durStr: durStrs)