Ludovic HOCHET created LOG4J2-1268:
--------------------------------------
Summary: FixedDateFormat is incorrect for formats having MMM with
the French locale
Key: LOG4J2-1268
URL: https://issues.apache.org/jira/browse/LOG4J2-1268
Project: Log4j 2
Issue Type: Bug
Components: Core
Affects Versions: 2.6
Environment: French Windows 10, Java 8
Reporter: Ludovic HOCHET
While verifying LOG4J2-920 I came across the following tests failures in Core:
FixedDateFormatTest.testFormatLong:147 DATE/1455054137029 expected:<09 févr.
201[6 ]22:42:17,029> but was:<09 févr. 201[]22:42:17,029>
FixedDateFormatTest.testFormatLongCharArrayInt:181 DATE/1455054136333
expected:<09 févr. 201[6 ]22:42:16,333> but was:<09 févr. 201[]22:42:16,333>
FixedDateFormatTest.testFormatLongCharArrayInt_goingBackInTime:199
DATE/1455234136907 expected:<12 févr. 201[6 ]00:42:16,907> but was:<12 févr.
201[]00:42:16,907>
FixedDateFormatTest.testFormatLong_goingBackInTime:163 DATE/1455234136722
expected:<12 févr. 201[6 ]00:42:16,722> but was:<12 févr. 201[]00:42:16,722>
Looking at the code the implementation of FixedDateFormat/FixedFormat expect
the size of the pattern MMM (for shot months) to be 3 characters, which in
French at least isn't the case.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]