Skip to content

Commit 14c9c66

Browse files
authored
Merge pull request #658 from msmat0/nonstopsession-log-fix
Consider `NonStopSession` parameter when printing the session schedule
2 parents 0b8e1db + b8c9574 commit 14c9c66

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

quickfixj-core/src/main/java/quickfix/DefaultSessionSchedule.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,10 @@ public String toString() {
331331

332332
private void formatTimeInterval(StringBuilder buf, TimeInterval timeInterval,
333333
SimpleDateFormat timeFormat, boolean local) {
334-
if (isWeekdaySession) {
334+
if (isNonStopSession) {
335+
buf.append("nonstop");
336+
return;
337+
} else if (isWeekdaySession) {
335338
try {
336339
for (int i = 0; i < weekdayOffsets.length; i++) {
337340
buf.append(DayConverter.toString(weekdayOffsets[i]));

0 commit comments

Comments
 (0)