ppalaga commented on code in PR #19110:
URL: https://github.com/apache/camel/pull/19110#discussion_r2332588197
##########
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:
Yeah, GMT is basically the old name of UTC
https://en.wikipedia.org/wiki/Greenwich_Mean_Time#:~:text=The%20term%20%22GMT%22%20is%20also%20used%20as%20one%20of%20the%20names%20for%20the%20time%20zone%20UTC%2B00%3A00
--
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]