This is an automated email from the ASF dual-hosted git repository. jiriondrusek pushed a commit to branch camel-main in repository https://gitbox.apache.org/repos/asf/camel-quarkus.git
commit a418f62936642676a77d31f2bbc108b17a84979a Author: James Netherton <jamesnether...@gmail.com> 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")); } }