[QFJ-162] Weekly session fails on Sundays Created: 19/Apr/07 Updated: 20/Feb/10 Resolved: 20/Feb/10 |
|
Status: | Closed |
Project: | QuickFIX/J |
Component/s: | Engine |
Affects Version/s: | 1.0.5 |
Fix Version/s: | 1.2.0 |
Type: | Bug | Priority: | Critical |
Reporter: | Christian Braeuner | Assignee: | Steve Bate |
Resolution: | Fixed | Votes: | 0 |
Labels: | None | ||
Environment: |
Unix Sun JVM 1.4.2_06 and XP Sun JVM 1.6.0_01 |
Attachments: | SessionSchedule.java | ||||||||
Issue Links: |
|
Description |
When the weekly Session starts on a Sunday, the QF engine resets but does not start at the configured time. The SessionSchedule class has a bug in TimeInterval.theMostRecentIntervalBefore() when the start or end date is a Sunday. The following code is making the wrong assumptions: The fix is to insert startCal.setFirstDayOfWeek(1) and endCal.setFirstDayOfWeek(1) at the appropiate lines in this method. Regards, |
Comments |
Comment by Steve Bate [ 19/Apr/07 ] |
Thanks for the report. Is it possible to provide a patch file? You can attach it to the issue. |
Comment by Christian Braeuner [ 19/Apr/07 ] |
Added 2 lines to correct scheduling bug: |
Comment by Steve Bate [ 19/May/07 ] |
I've added tests and, by default, I'm running the unit test in a non-US locale to help catch these problems earlier in the future. |
Comment by Steve Bate [ 20/Feb/10 ] |
Reopening to remove spam comment |