diff --git a/fahrschein-example/src/main/java/org/zalando/fahrschein/example/ProducerExample.java b/fahrschein-example/src/main/java/org/zalando/fahrschein/example/ProducerExample.java index 35e879ba..56a1cfb3 100644 --- a/fahrschein-example/src/main/java/org/zalando/fahrschein/example/ProducerExample.java +++ b/fahrschein-example/src/main/java/org/zalando/fahrschein/example/ProducerExample.java @@ -24,6 +24,7 @@ import java.io.IOException; import java.net.URI; import java.time.OffsetDateTime; +import java.time.ZoneOffset; import java.util.ArrayList; import java.util.List; import java.util.Map; @@ -65,7 +66,7 @@ private static void produceEvents() throws IOException, InterruptedException { Map carrierContext = OpenTelemetryHelper.currentContextToMap(); List events = new ArrayList<>(); for (int i = 0; i < 10; i++) { - Metadata metadata = new Metadata(UUID.randomUUID().toString(), OffsetDateTime.now(), "sample-flow-id", carrierContext); + Metadata metadata = new Metadata(UUID.randomUUID().toString(), OffsetDateTime.now(ZoneOffset.UTC), "sample-flow-id", carrierContext); events.add(new OrderCreatedEvent(metadata, "123", Money.of(123, "EUR"), "1234", "paypal")); } LOG.info("publishing {} events", events.size());