View | Details | Raw Unified | Return to bug 53369
Collapse All | Expand All

(-)poi-3.8/src/java/org/apache/poi/ss/format/CellDateFormatter.java.jdk17 (-2 / +2 lines)
Lines 150-156 public class CellDateFormatter extends C Link Here
150
        StringBuffer descBuf = CellFormatPart.parseFormat(format,
150
        StringBuffer descBuf = CellFormatPart.parseFormat(format,
151
                CellFormatType.DATE, partHandler);
151
                CellFormatType.DATE, partHandler);
152
        partHandler.finish(descBuf);
152
        partHandler.finish(descBuf);
153
        dateFmt = new SimpleDateFormat(descBuf.toString());
153
        dateFmt = new SimpleDateFormat(descBuf.toString().replaceAll("((y)(?!y))(?<!yy)", "yy"),LOCALE.US);
154
    }
154
    }
155
155
156
    /** {@inheritDoc} */
156
    /** {@inheritDoc} */
Lines 214-217 public class CellDateFormatter extends C Link Here
214
    public void simpleValue(StringBuffer toAppendTo, Object value) {
214
    public void simpleValue(StringBuffer toAppendTo, Object value) {
215
        SIMPLE_DATE.formatValue(toAppendTo, value);
215
        SIMPLE_DATE.formatValue(toAppendTo, value);
216
    }
216
    }
217
}
217
}

Return to bug 53369