You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ja...@apache.org on 2024/07/04 07:05:04 UTC

(camel-quarkus) 04/20: Remove iCal UTC timezone format appendage or 'Z' to the timestamp

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 6ca28689cb8ce4e10d96fbfe3b6a62b62856418a
Author: James Netherton <ja...@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"));
     }
 
 }