LF-Lin commented on pull request #800:
URL: https://github.com/apache/logging-log4j2/pull/800#issuecomment-1068601032


   Also, I reproduced the result in this 
[issue](https://issues.apache.org/jira/browse/LOG4J2-3019) by adding the 
following lines in 
[testLayoutWithDatePatternFixedFormat()](https://github.com/apache/logging-log4j2/blob/release-2.x/log4j-core/src/test/java/org/apache/logging/log4j/core/layout/HtmlLayoutTest.java#L239),
   ```java
   Locale.setDefault(new Locale("en", "NL"));  // en_NL --> 02 Nov
   Locale.setDefault(Locale.Category.FORMAT, new Locale("nl", "NL"));  // nl_NL 
--> 02 nov
   ```
   the result will be: `[ERROR]   
HtmlLayoutTest.testLayoutWithDatePatternFixedFormat:242->testLayoutWithDatePatternFixedFormat:273
 Incorrect date=<td>02 Nov 2012 21:34:02,123</td>, format=DATE, timezone=GMT+8 
==> expected: <<td>02 nov 2012 21:34:02,123</td>> but was: <<td>02 Nov 2012 
21:34:02,123</td>> `
   


-- 
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]


Reply via email to