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

(-)src/testcases/org/apache/poi/ss/format/TestCellFormat.java (-1 / +3 lines)
Lines 850-856 Link Here
850
    @Test
850
    @Test
851
    public void testApplyObjectDate() throws ParseException {
851
    public void testApplyObjectDate() throws ParseException {
852
        CellFormat cf1 = CellFormat.getInstance("m/d/yyyy");
852
        CellFormat cf1 = CellFormat.getInstance("m/d/yyyy");
853
        Date date1 = new SimpleDateFormat("M/d/y", Locale.ROOT).parse("01/11/2012");
853
        SimpleDateFormat sdf1 = new SimpleDateFormat("M/d/y", Locale.ROOT);
854
        sdf1.setTimeZone(TimeZone.getTimeZone("CET"));
855
        Date date1 = sdf1.parse("01/11/2012");
854
        assertEquals("1/11/2012", cf1.apply(date1).text);
856
        assertEquals("1/11/2012", cf1.apply(date1).text);
855
    }
857
    }
856
858

Return to bug 64179