Skip to content

Commit

Permalink
AdjustSendingTime fix
Browse files Browse the repository at this point in the history
  • Loading branch information
denis.plotnikov committed Oct 7, 2024
1 parent 1596a1b commit f834e98
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/com/exactpro/th2/FixHandler.java
Original file line number Diff line number Diff line change
Expand Up @@ -2584,9 +2584,9 @@ private void updateSendingTime(ByteBuf buf, Duration adjustDuration, boolean sub
DateTimeFormatter formatter = settings.getSendingDateTimeFormat();
LocalDateTime datetime = LocalDateTime.now(ZoneOffset.UTC);
if(substract) {
datetime.minus(adjustDuration);
datetime = datetime.minus(adjustDuration);
} else {
datetime.plus(adjustDuration);
datetime = datetime.plus(adjustDuration);
}
sendingTime.setValue(formatter.format(datetime));
}
Expand Down

0 comments on commit f834e98

Please sign in to comment.