diff --git a/integration-tests/dataformat/src/main/java/org/apache/camel/quarkus/component/dataformat/it/ICalUtils.java b/integration-tests/dataformat/src/main/java/org/apache/camel/quarkus/component/dataformat/it/ICalUtils.java index 7cfc018e832b..33d3992a8c28 100644 --- a/integration-tests/dataformat/src/main/java/org/apache/camel/quarkus/component/dataformat/it/ICalUtils.java +++ b/integration-tests/dataformat/src/main/java/org/apache/camel/quarkus/component/dataformat/it/ICalUtils.java @@ -82,16 +82,7 @@ protected static Calendar createTestCalendar(ZonedDateTime start, ZonedDateTime } static DateTime toDateTime(ZonedDateTime zonedDateTime, TimeZoneRegistry registry) { - final String tzId = zonedDateTime.getZone().getId(); - final TimeZone timezone = registry.getTimeZone(tzId.equals("Z") ? "UTC" : tzId); - // workaround for https://github.com/apache/camel-quarkus/issues/838 - final DateTime result = new DateTime(); - result.setTimeZone(timezone); - result.setTime(zonedDateTime.toInstant().toEpochMilli()); - // To reproduce https://github.com/apache/camel-quarkus/issues/838 comment the above, enable the following - // and remove the TZ from DTSTART and DTEND in src/test/resources/test.ics - // final DateTime result = new DateTime(zonedDateTime.toInstant().toEpochMilli()); - return result; + return new DateTime(zonedDateTime.toInstant().toEpochMilli()); } } diff --git a/integration-tests/dataformat/src/test/resources/test.ics b/integration-tests/dataformat/src/test/resources/test.ics index 6bb9d714fae0..3bc562990f21 100644 --- a/integration-tests/dataformat/src/test/resources/test.ics +++ b/integration-tests/dataformat/src/test/resources/test.ics @@ -4,8 +4,8 @@ PRODID:-//Events Calendar//iCal4j 1.0//EN CALSCALE:GREGORIAN BEGIN:VEVENT DTSTAMP:19700101T000000Z -DTSTART;TZID=Europe/Paris:20071203T101530 -DTEND;TZID=Europe/Paris:20071203T111631 +DTSTART:20071203T101530 +DTEND:20071203T111631 SUMMARY:Progress Meeting TZID:Europe/Paris UID:00000000