vy commented on code in PR #1419:
URL: https://github.com/apache/logging-log4j2/pull/1419#discussion_r1162488068
##########
log4j-core/src/main/java/org/apache/logging/log4j/core/util/datetime/FixedDateFormat.java:
##########
@@ -255,7 +261,7 @@ private static int[] nanoRange(final String pattern) {
* @return the length of the resulting formatted date and time strings
*/
public int getLength() {
- return pattern.length() - escapeCount;
+ return pattern.length() - escapeCount + extraTimeZoneFormatLength;
Review Comment:
Given this is fixed, do we still need the `char[]`-size fix in
`InstantFormatter`?
--
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]