jamesnetherton commented on code in PR #7247:
URL: https://github.com/apache/camel-quarkus/pull/7247#discussion_r2038980480
##########
integration-tests/beanio/src/main/java/org/apache/camel/quarkus/component/beanio/it/BeanioResource.java:
##########
@@ -50,7 +51,11 @@
@Path("/beanio")
public class BeanioResource {
- public static final SimpleDateFormat FORMATTER = new
SimpleDateFormat("yyyy-MM-dd");
+ public static SimpleDateFormat FORMATTER = new
SimpleDateFormat("yyyy-MM-dd");
+
+ static {
+ FORMATTER.setTimeZone(TimeZone.getTimeZone("CET"));
+ }
Review Comment:
It may actually be enough to remove the `static` modifier. That way
`FORMATTER` will get reevaluated at runtime and that should work for everyone
regardless of timezone in native mode. Give it a try and see if it works for
you.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]