quickfixj
quickfixj copied to clipboard
Fix bug in handling schedules when `EndTime` < `StartTime` and are in different timezones
trafficstars
It was possible to end up in a state when interval end is >24 hours before interval start (this is some quirk of the j.u.Calendar which I don't fully understand - but order of calls to setTimeZone() and setTimeInMillis() somehow matters). Adding 1 day in this case is not enough, since resulting interval is still inverted. This patch addresses the problem by moving end timestamp forward as long as it is behind the start.
Fixes #486