diff --git a/iso20022-core/src/test/java/com/prowidesoftware/swift/model/mx/adapters/OffsetTimeAdapterTest.java b/iso20022-core/src/test/java/com/prowidesoftware/swift/model/mx/adapters/OffsetTimeAdapterTest.java index 351c7be18..cbd5c8c0d 100644 --- a/iso20022-core/src/test/java/com/prowidesoftware/swift/model/mx/adapters/OffsetTimeAdapterTest.java +++ b/iso20022-core/src/test/java/com/prowidesoftware/swift/model/mx/adapters/OffsetTimeAdapterTest.java @@ -72,7 +72,7 @@ public void testMarshallNoOffset() throws Exception { DateTimeFormatter dateTimeFormatter = DateTimeFormatter.ofPattern("HH:mm:ss[.SSS][XXX]"); ZoneOffset offset = ZoneId.systemDefault().getRules().getOffset(Instant.now()); OffsetTime offsetTime = LocalTime.parse("12:50:08", dateTimeFormatter).atOffset(offset); - assertEquals("12:50:08" + offset, adapter.marshal(offsetTime)); + assertEquals("12:50:08" + systemOffset(), adapter.marshal(offsetTime)); } @Test