This is an automated email from the ASF dual-hosted git repository.

zbendhiba pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/main by this push:
     new fd369d090a7 CAMEL-18473: correct knative CloudEvent time format (#8306)
fd369d090a7 is described below

commit fd369d090a78faecfdfbc39fe3d177940d76d3ac
Author: Zineb BENDHIBA <[email protected]>
AuthorDate: Wed Sep 7 13:45:12 2022 +0200

    CAMEL-18473: correct knative CloudEvent time format (#8306)
---
 .../apache/camel/component/knative/ce/AbstractCloudEventProcessor.java  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/components/camel-knative/camel-knative-component/src/main/java/org/apache/camel/component/knative/ce/AbstractCloudEventProcessor.java
 
b/components/camel-knative/camel-knative-component/src/main/java/org/apache/camel/component/knative/ce/AbstractCloudEventProcessor.java
index f383cf2c907..9b8778d99db 100644
--- 
a/components/camel-knative/camel-knative-component/src/main/java/org/apache/camel/component/knative/ce/AbstractCloudEventProcessor.java
+++ 
b/components/camel-knative/camel-knative-component/src/main/java/org/apache/camel/component/knative/ce/AbstractCloudEventProcessor.java
@@ -124,7 +124,7 @@ abstract class AbstractCloudEventProcessor implements 
CloudEventProcessor {
             setCloudEventHeader(headers, CloudEvent.CAMEL_CLOUD_EVENT_TIME, () 
-> {
                 final ZonedDateTime created
                         = 
ZonedDateTime.ofInstant(Instant.ofEpochMilli(exchange.getCreated()), 
ZoneId.systemDefault());
-                final String eventTime = 
DateTimeFormatter.ISO_OFFSET_DATE_TIME.format(created);
+                final String eventTime = 
DateTimeFormatter.ISO_INSTANT.format(created);
 
                 return eventTime;
             });

Reply via email to