quickfixj icon indicating copy to clipboard operation
quickfixj copied to clipboard

Fix bug in handling schedules when `EndTime` < `StartTime` and are in different timezones

Open AndreyNudko opened this issue 3 years ago • 0 comments
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

AndreyNudko avatar Nov 18 '22 17:11 AndreyNudko