This is an automated email from the ASF dual-hosted git repository. jamesnetherton pushed a commit to branch camel-main in repository https://gitbox.apache.org/repos/asf/camel-quarkus.git
commit 68dd6b783f0bc5e8552a20c1130f49871dc0f267 Author: James Netherton <[email protected]> AuthorDate: Wed Jun 26 12:49:06 2024 +0100 Remove iCal UTC timezone format appendage or 'Z' to the timestamp --- .../camel/quarkus/component/dataformat/it/DataformatTest.java | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/integration-tests/dataformat/src/test/java/org/apache/camel/quarkus/component/dataformat/it/DataformatTest.java b/integration-tests/dataformat/src/test/java/org/apache/camel/quarkus/component/dataformat/it/DataformatTest.java index f2cf856cba..62efa5035c 100644 --- a/integration-tests/dataformat/src/test/java/org/apache/camel/quarkus/component/dataformat/it/DataformatTest.java +++ b/integration-tests/dataformat/src/test/java/org/apache/camel/quarkus/component/dataformat/it/DataformatTest.java @@ -98,11 +98,7 @@ class DataformatTest { } static String toFormatedLocalDateTime(ZonedDateTime zonedDateTime) { - String result = zonedDateTime.format(DateTimeFormatter.ofPattern("yyyyMMdd'T'hhmmss")); - if (zonedDateTime.getZone().getId().equals("Etc/UTC")) { - result += "Z"; - } - return result; + return zonedDateTime.format(DateTimeFormatter.ofPattern("yyyyMMdd'T'hhmmss")); } }
