zhfeng commented on code in PR #19110:
URL: https://github.com/apache/camel/pull/19110#discussion_r2332564659
##########
components/camel-openapi-java/src/main/java/org/apache/camel/openapi/RestOpenApiSupport.java:
##########
@@ -60,7 +61,12 @@
*/
public class RestOpenApiSupport {
- public static DateFormat DEFAULT_DATE_FORMAT = new
SimpleDateFormat("yyyy-MM-dd");
+ private static final DateFormat DEFAULT_DATE_FORMAT;
+ static {
+ final SimpleDateFormat f = new SimpleDateFormat("yyyy-MM-dd");
+ f.setTimeZone(TimeZone.getTimeZone("UTC"));
Review Comment:
In the original test, it used
`testDateFormat.setTimeZone(TimeZone.getTimeZone("GMT"));`, not sure if it is
the same with `"UTC"`?
--
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]