dachuan9e opened a new pull request #441:
URL: https://github.com/apache/tomcat/pull/441


   It will build fail when the locale is not set to en. Apache ant cannot 
support different locale format of time stamp. Showing the root cause by the 
following code in Ant. It needs to use the 24-hour format to avoid this issue.
   
   public static final ThreadLocal<DateFormat> EN_US_DATE_FORMAT_MIN =
               ThreadLocal.withInitial(() -> new SimpleDateFormat("MM/dd/yyyy 
hh:mm a", Locale.US));
   
       public static final ThreadLocal<DateFormat> EN_US_DATE_FORMAT_SEC =
               ThreadLocal.withInitial(() -> new SimpleDateFormat("MM/dd/yyyy 
hh:mm:ss a", Locale.US));


-- 
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: dev-unsubscr...@tomcat.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to