[
https://issues.apache.org/jira/browse/CAMEL-22408?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18019001#comment-18019001
]
Peter Palaga commented on CAMEL-22408:
--------------------------------------
Well, it used to be reproducible via
org.apache.camel.openapi.RestOpenApiReaderTest.testReaderReadV3(String) before
https://issues.apache.org/jira/browse/CAMEL-21531 and its fix
https://github.com/apache/camel/commit/b2e551a900fd6d5ec5b09fc28e8c9d11003483a3
which only made the test use the UTC time zone.
That was perhaps not the right thing to do.
I think the right approach is to make
org.apache.camel.openapi.RestOpenApiSupport.DEFAULT_DATE_FORMAT to always use
the UTC time zone.
> OpenAPI Description showing wrong allowable dates depending on system timezone
> ------------------------------------------------------------------------------
>
> Key: CAMEL-22408
> URL: https://issues.apache.org/jira/browse/CAMEL-22408
> Project: Camel
> Issue Type: Improvement
> Reporter: Peter Palaga
> Priority: Major
>
> Originally reported as https://github.com/apache/camel-quarkus/issues/7717
> Reproducible with Camel Quarkus on Linux
> {code}
> cd integration-tests/openapi-java
> # on Linux
> export TZ=Etc/GMT+12
> mvn clean test -Dtest=OpenApiV3Test#arrayTypes
> {code}
> On other OSes you may need to set the timezone differently.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)